VMware ESXi SSH鍵の配置
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
目次
#contents
**概要 [#sc80afd4]
ESXiへの自動ログインなどを行うためのSSH鍵の追加手順~
**前提 [#u755b55b]
以下の作業は事前に済ませてあることを前提とする。~
~
-ESXiのSSH有効化
-パスワードなしのSSH鍵(公開鍵)作成
**手順 [#le5cd8f7]
ESXiでは以下の場所にSSH公開鍵(authorized_keys)を配置す...
/etc/ssh
rootのSSH鍵の場合は以下となる。
/etc/ssh/keys-root
~
~
以下の手順にてrootユーザ向けのSSH公開鍵を配置する。~
~
1. 公開鍵をESXiサーバに転送
~
2. 公開鍵のサイズを確認
# ls -la /etc/ssh/keys-root
total 8
drwxr-xr-x 1 root root 512 Sep 26 15:06 .
drwxr-xr-x 1 root root 512 Sep 26 15:06...
-rw------T 1 root root 0 Sep 19 2013...
~
3. 公開鍵を書き込み
cat [公開鍵ファイル] > /etc/ssh/keys-root/authorized_keys
~
4. 公開鍵のサイズを確認
# ls -la /etc/ssh/keys-root
total 12
drwxr-xr-x 1 root root 512 Sep 28 02:43 .
-r-------T 1 root root 0 Sep 19 2013...
drwxr-xr-x 1 root root 512 Sep 26 15:06...
-rw------T 1 root root 407 Sep 28 02:43...
~
5. 別のホストから接続を確認
# ssh -l root -i [SSH秘密鍵] [ESXiホスト]
The time and date of this login have been sent to the sy...
VMware offers supported, powerful system administration ...
see www.vmware.com/go/sysadmintools for details.
The ESXi Shell can be disabled by an administrative user...
vSphere Security documentation for more information.
~ #
**トラブル対応 [#a942c0ae]
***初回アクセス時の注意事項 [#xde16e58]
SSHの仕様により、known_hostsにフィンガープリントが記録さ...
~
The authenticity of host '[HOSTNAME] ([IP])' can't be es...
RSA key fingerprint is 87:17:4b:b1:36:a5:8b:47:55:c1:51:...
Are you sure you want to continue connecting (yes/no)?
~
プログラムにて自動ログインを行う場合には支障となることか...
~
***フィンガープリントの不一致 [#f4f8a518]
ESXiの再インストールを行う等を行った場合、過去に接続した...
~
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-...
It is also possible that the RSA host key has just been ...
The fingerprint for the RSA key sent by the remote host ...
Please contact your system administrator.
Add correct host key in /home/[USER]/.ssh/known_hosts to...
Offending key in /home/[USER]/.ssh/known_hosts:2
RSA host key for [ESXi IP] has changed and you have requ...
Host key verification failed.
~
~
上記のメッセージに記載されている通り、/home/[USER]/.ssh/k...
に記載された古いフィンガープリントを削除する必要がある。~
(vi等で上記ファイルを開き、当該ホストの行を削除する)~
終了行:
目次
#contents
**概要 [#sc80afd4]
ESXiへの自動ログインなどを行うためのSSH鍵の追加手順~
**前提 [#u755b55b]
以下の作業は事前に済ませてあることを前提とする。~
~
-ESXiのSSH有効化
-パスワードなしのSSH鍵(公開鍵)作成
**手順 [#le5cd8f7]
ESXiでは以下の場所にSSH公開鍵(authorized_keys)を配置す...
/etc/ssh
rootのSSH鍵の場合は以下となる。
/etc/ssh/keys-root
~
~
以下の手順にてrootユーザ向けのSSH公開鍵を配置する。~
~
1. 公開鍵をESXiサーバに転送
~
2. 公開鍵のサイズを確認
# ls -la /etc/ssh/keys-root
total 8
drwxr-xr-x 1 root root 512 Sep 26 15:06 .
drwxr-xr-x 1 root root 512 Sep 26 15:06...
-rw------T 1 root root 0 Sep 19 2013...
~
3. 公開鍵を書き込み
cat [公開鍵ファイル] > /etc/ssh/keys-root/authorized_keys
~
4. 公開鍵のサイズを確認
# ls -la /etc/ssh/keys-root
total 12
drwxr-xr-x 1 root root 512 Sep 28 02:43 .
-r-------T 1 root root 0 Sep 19 2013...
drwxr-xr-x 1 root root 512 Sep 26 15:06...
-rw------T 1 root root 407 Sep 28 02:43...
~
5. 別のホストから接続を確認
# ssh -l root -i [SSH秘密鍵] [ESXiホスト]
The time and date of this login have been sent to the sy...
VMware offers supported, powerful system administration ...
see www.vmware.com/go/sysadmintools for details.
The ESXi Shell can be disabled by an administrative user...
vSphere Security documentation for more information.
~ #
**トラブル対応 [#a942c0ae]
***初回アクセス時の注意事項 [#xde16e58]
SSHの仕様により、known_hostsにフィンガープリントが記録さ...
~
The authenticity of host '[HOSTNAME] ([IP])' can't be es...
RSA key fingerprint is 87:17:4b:b1:36:a5:8b:47:55:c1:51:...
Are you sure you want to continue connecting (yes/no)?
~
プログラムにて自動ログインを行う場合には支障となることか...
~
***フィンガープリントの不一致 [#f4f8a518]
ESXiの再インストールを行う等を行った場合、過去に接続した...
~
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-...
It is also possible that the RSA host key has just been ...
The fingerprint for the RSA key sent by the remote host ...
Please contact your system administrator.
Add correct host key in /home/[USER]/.ssh/known_hosts to...
Offending key in /home/[USER]/.ssh/known_hosts:2
RSA host key for [ESXi IP] has changed and you have requ...
Host key verification failed.
~
~
上記のメッセージに記載されている通り、/home/[USER]/.ssh/k...
に記載された古いフィンガープリントを削除する必要がある。~
(vi等で上記ファイルを開き、当該ホストの行を削除する)~
ページ名: