$ ssh XXX.XXX.XXX.XXX
ssh: connect to host XXX.XXX.XXX.XXXport 22: Connection refused
如上所示,表示沒有還沒有安裝,可以通過apt安裝,命令如下:
$ sudo apt-get install openssh-server
系統將自動進行安裝,安裝完成以後,先啟動服務:
$ sudo /etc/init.d/ssh start
reference: http://fecbob.pixnet.net/blog/post/39286433-ubuntu%E4%B8%8A%E4%BD%BF%E7%94%A8ssh-
[linux] ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
分類:linux