bluemixでvmを使用してみる
TRANSCRIPT
sshのキーペアを作成
● 仮想マシンにはsshの鍵認証で入るため、sshのキーペアを作成しておく
● Mac/Linuxはssh-keygenで。Windowsの時は、puttyなどを使う(ここでは解説しないのでWebで検索)
sshでアクセス
$ ssh -i pathToPrivateKeyFile [email protected] authenticity of host '129.41.129.182 (<no hostip for proxy command>)' can't be established.ECDSA key fingerprint is bc:51:aa:e3:6e:17:15:b2:16:74:75:a2:80:7a:8f:68.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '129.41.129.182' (ECDSA) to the list of known hosts.Enter passphrase for key '/home/shanai/.ssh/id_dsa': Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-24-generic x86_64)
* Documentation: https://help.ubuntu.com/
The programs included with the Ubuntu system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted byapplicable law.
/usr/bin/xauth: file /home/ibmcloud/.Xauthority does not exist$
初回アクセス時に本当にアクセスして良いか聞かれる
ユーザー名はibmcloud固定。普段使用しているユーザー(ibmcloud以外)でsshを実行する場合、秘密鍵の場所を-iオプションで指定する必要がある(デフォルトは、ホームディレクトリ/.sshの下を見るため)。アドレスは前ページでメモしたもの
sshキーペアを作成した時のパスフレーズ