标签:
命令:ssh localhost
错误信息:ssh: connect to host localhost port 22: Connection refused
错误原因:
1.sshd 未安装
2.sshd 未启动
3.防火墙
解决方法:
1.确定安装sshd: sudo apt-get install openssh-server
2.启动sshd: net start sshd
3.检查防火墙设置
检验方法:
输入命令:ssh localhost
若成功,则表示安装成功,且连接通过;
转载:http://blog.sina.com.cn/s/blog_573a052b0102dwxn.html
ssh: connect to host localhost port 22: Connection refused (2)
标签:
原文地址:http://www.cnblogs.com/spring-sd/p/4944834.html