sshでの接続
sshでの接続
当然であるが、serverとなる側に、
openssh-server
をinstallする必要がある。
当然と言いながら、最初は知らなかったのだが・・・。
openssh-serverをinstallしない状態で、
michael@michael:~$ sudo ssh minerva@192.168.100.10
などとやっても、
ssh: connect to host 192.168.100.10 port 22: Connection refused
というふうに拒否されるだけである。外部にserverを公開する場合には、一般的にport 22以外を使用するのでしょうかね・・・。
server側にopenssh-serverをinstallした後で、
michael@michael:~$ ssh -l minerva 192.168.100.10 (または、sudo ssh minerva@192.168.100.10)
とやれば、
The authenticity of host '192.168.100.10 (192.168.100.10)' can't be established.
RSA key fingerprint is ca:18:81:a2:5c:99:1c:3f:4b:4a:18:6d:ff:9e:6d:5e.
Are you sure you want to continue connecting (yes/no)?
と聞いてくるので、管理者に鍵が正しいかどうか確認し、正しければ、yes
と入力。
すると、
Warning: Permanently added '192.168.100.10' (RSA) to the list of known hosts.
minerva@192.168.100.10's password:
Linux minerva 2.6.35-28-generic-pae #50-Ubuntu SMP Fri Mar 18 20:43:15 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
New release 'natty' available.
Run 'do-release-upgrade' to upgrade to it.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
minerva@minerva:~$
となって、無事にsshで接続成功。
当然であるが、serverとなる側に、
openssh-server
をinstallする必要がある。
当然と言いながら、最初は知らなかったのだが・・・。
openssh-serverをinstallしない状態で、
michael@michael:~$ sudo ssh minerva@192.168.100.10
などとやっても、
ssh: connect to host 192.168.100.10 port 22: Connection refused
というふうに拒否されるだけである。外部にserverを公開する場合には、一般的にport 22以外を使用するのでしょうかね・・・。
server側にopenssh-serverをinstallした後で、
michael@michael:~$ ssh -l minerva 192.168.100.10 (または、sudo ssh minerva@192.168.100.10)
とやれば、
The authenticity of host '192.168.100.10 (192.168.100.10)' can't be established.
RSA key fingerprint is ca:18:81:a2:5c:99:1c:3f:4b:4a:18:6d:ff:9e:6d:5e.
Are you sure you want to continue connecting (yes/no)?
と聞いてくるので、管理者に鍵が正しいかどうか確認し、正しければ、yes
と入力。
すると、
Warning: Permanently added '192.168.100.10' (RSA) to the list of known hosts.
minerva@192.168.100.10's password:
Linux minerva 2.6.35-28-generic-pae #50-Ubuntu SMP Fri Mar 18 20:43:15 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
New release 'natty' available.
Run 'do-release-upgrade' to upgrade to it.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
minerva@minerva:~$
となって、無事にsshで接続成功。