Openshift以rhc登入另一個帳號

因為在電腦上已經設定過一個帳號,而現在想以另一個帳號來使用rhc。

查詢目前的帳號資訊:
C:\> rhc account

Login test01@test.com on openshift.redhat.com
---------------------------------------------
  ID:                 3369ac227359ca188d00220d5
  Plan:               Free
  Gears Used:         2
  Gears Allowed:      3
  Domains Allowed:    1
  Allowed Gear Sizes: small
  SSL Certificates:   no
 
 
把目前的帳號登出(也可以不必登出):
C:\> rhc account logout


登入新帳號:
C:\> rhc setup -l test02@test.com

OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online: openshift.redhat.com.
Enter the server hostname: |openshift.redhat.com|  <--直接按Enter

You can add more servers later using 'rhc server'.
Using test02@test.com to login to openshift.redhat.com
Password: ********   <-- 輸入密碼

OpenShift can create and store a token on disk which allows to you to access the
server without using your password. The key is stored in your home directory and
should be kept secret.  You can delete the key at any time by running 'rhc
logout'.
Generate a token now? (yes|no) yes  <--我是輸入yes

Generating an authorization token for this client ... lasts about 1 month
Saving configuration to C:\Users\test02\.openshift\express.conf ... done
Checking common problems
Your private SSH key file should be set as readable only to yourself.  Please
run 'chmod 600 C:\Users\test02\.ssh\id_rsa'
Checking for a domain ... test02
Checking for applications ... found 1
  blog http://blog-test02.rhcloud.com/
  You are using 1 of 3 total gears
  The following gear sizes are available to you: small
Your client tools are now configured.


再查一次目前的帳號,已改為test02
C:\Users\keven_chen>rhc account
Login test02@test.com on openshift.redhat.com
-------------------------------------------------
  ID:                 8745c69b544776e0ad01215e
  Plan:               Free
  Gears Used:         1
  Gears Allowed:      3
  Domains Allowed:    1
  Allowed Gear Sizes: small
  SSL Certificates:   no

利用Plink替代Putty來建立Script