简体   繁体   English

以编程方式设置桉树节点控制器键

[英]programmatically setting up eucalyptus node controller keys

I had a general question regarding the way eucalyptus setups ssh keypairs for the various controllers like cluster, node etc. Currently my task at hand is to automate setup of eucalyptus (including ssh'ing into machines and settuping up cluster controller and node controllers). 我对桉树为各种控制器(如群集,节点等)设置ssh密钥对的方式有一个一般性的问题。目前,我手头的任务是自动化桉树的设置(包括将ssh放入计算机并设置群集控制器和节点控制器)。 If i have to do this programmatically, i need somehow setup sshkeys for node controllers. 如果必须以编程方式执行此操作,则需要以某种方式为节点控制器设置sshkey。 How do i go about doing that. 我该怎么做。 After registering a nc by hand, i don't see any authorized_keys file in either root's home or eucalyptus's home. 手动注册了一个nc之后,我在root的家或eucalyptus的家中都看不到任何authorized_keys文件。 Also the /etc/ssh/sshd_config does not show a change in authorized_keys location on the node-controller. 此外,/ etc / ssh / sshd_config不会在节点控制器上的authorized_keys位置上显示更改。

Please help me resolve this question. 请帮助我解决这个问题。

Eucalyptus ssh connection between the CC and the NCs is done using the eucalyptus user. CC和NC之间的Eucalyptus ssh连接是使用eucalyptus用户完成的。 The root directory for the user eucalyptus is /var/lib/eucalyptus . 用户eucalyptus的根目录是/ var / lib / eucalyptus There you'll find the .ssh directory containing the knownhost and the id_rsa.pub files. 在该目录中,您将找到.ssh目录,其中包含knownhostid_rsa.pub文件。

In the Eucalyptus install/configuration process you'll find more info. 在Eucalyptus的安装/配置过程中,您将找到更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM