我正在设置rhc客户端工具以连接到OpenShift。在'rhc setup'期间,假设在以下位置生成ssh密钥:
~/.ssh/
但是,此.ssh文件夹正用于另一个连接,我的首选项不是修改此文件夹。
是否有可能以某种方式为rhc setup期间的ssh密钥生成指定不同的位置?
因为在rhc设置期间,我没有被问到在哪里生成密钥,我也查看了~/.openshift/express.conf
并且我只看到了ssl的配置;不是ssh。
感谢。
答案 0 :(得分:0)
如果您的.ssh文件夹中已有现有的ssh密钥,则rhc setup命令可能会询问您是否要上传现有密钥,而不是创建新密钥。如果您登录openshift Web控制台,则可以查看是否为您上传了密钥。
答案 1 :(得分:0)
不确定它在Windows上是如何工作的。您是否尝试在运行rhc时设置HOME
env变量?或者在Windows上有任何HOME*
变量来指定用户的主目录(HOMEPATH,HOMEDRIVE ......)。
我只能假设任何贬低此事的人都是白痴。刚试过 linux ,它正在运行。我不能在Windows上测试,但它很可能也会在那里工作。无论如何,对于发现它有用的人来说:
$ HOME=/home/crackit/newhome rhc setup
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|
You can add more servers later using 'rhc server'.
Login to openshift.redhat.com: xxxxx@yyyyyy.zzz
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
Generating an authorization token for this client ... lasts about 1 month
Saving configuration to /home/crackit/newhome/.openshift/express.conf ... done
No SSH keys were found. We will generate a pair of keys for you.
Created: /home/crackit/newhome/.ssh/id_rsa.pub
Your public SSH key must be uploaded to the OpenShift server to access code.
Upload now? (yes|no)
yes
default (type: ssh-rsa)
-----------------------
Fingerprint: ba:49:1e:2a:22:1d:e4:69:3b:ee:62:09:dc:2d:4c:f1
dpospisi (type: ssh-rsa)
------------------------
Fingerprint: 83:89:a7:c4:bd:31:31:8c:26:a4:82:a5:8e:6e:c0:65
You can enter a name for your key, or leave it blank to use the default name.
Using the same name as an existing key will overwrite the old key.
Provide a name for this key: |asdfghhjjkk| gah
Uploading key 'gah' ... done
Checking for git ... found git version 2.1.0
Checking common problems .. done
Checking for a domain ... asdfghh
Checking for applications ... found 2
jenkins http://aaaa-bbbbbb.rhcloud.com/
tmp http://tmp-bbbbbb.rhcloud.com/
You are using 2 of 3 total gears
The following gear sizes are available to you: small, medium
Your client tools are now configured.