gpt4 book ai didi

ssh - 如何更改 openshift 的 ssh 键的位置

转载 作者:行者123 更新时间:2023-12-02 14:08:58 25 4
gpt4 key购买 nike

我正在设置 rhc 客户端工具以连接到 OpenShift。在“rhc setup”期间,假设在以下位置生成 ssh key :
~/.ssh/
但是,这个 .ssh 文件夹被用于另一个连接,我不喜欢修改这个文件夹。

是否可以在 rhc 设置期间以某种方式为 ssh key 生成指定不同的位置?

因为在 rhc 设置期间,我没有被问到在哪里生成 key ,我还查看了 ~/.openshift/express.conf我只看到了 ssl 的配置;不是ssh。

谢谢。

最佳答案

不确定它如何在 Windows 上运行。您是否尝试设置 HOME运行 rhc 时的环境变量?或任何HOME* Windows 上有用于指定用户主目录的变量(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.

关于ssh - 如何更改 openshift 的 ssh 键的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32913194/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com