解决connect to host localhost port 22: Connection refused问题

root@jk1-machine:/# service ssh start
root@jk1-machine:/# sudo net start sshd
sudo: net:找不到命令
root@jk1-machine:/# sudo ufw disable
防火墙在系统启动时自动禁用
root@jk1-machine:/# ssh localhost
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-28-generic x86_64)


 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage


303 个可升级软件包。
161 个安全更新。

你可能感兴趣的:(解决connect to host localhost port 22: Connection refused问题)