Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused
造成这个错误的原因可能是ssh-server未安装或者未启动。ubuntu 11.10 默认安装openssh-client,但是木有安装server
运行 ps -e | grep ssh,查看是否有sshd进程
如果没有,说明server没启动,通过 /etc/init.d/ssh -start 启动server进程,如果提示ssh不存在 那么就是没安装server
通过 sudo apt-get install openssh-server命令安装即可
转载请注明源 http://asyty.iteye.com/blog/1440141
造成这个错误的原因可能是ssh-server未安装或者未启动。ubuntu 11.10 默认安装openssh-client,但是木有安装server
运行 ps -e | grep ssh,查看是否有sshd进程
如果没有,说明server没启动,通过 /etc/init.d/ssh -start 启动server进程,如果提示ssh不存在 那么就是没安装server
通过 sudo apt-get install openssh-server命令安装即可
转载请注明源 http://asyty.iteye.com/blog/1440141
本文指导用户如何解决Ubuntu环境下使用sshlocalhost命令时出现的connecttohostlocalhostport22:Connectionrefused错误。通过检查SSH服务器的状态、启动或安装SSH服务来解决问题。
1101

被折叠的 条评论
为什么被折叠?



