SSH登录提示:connection refused

SSH分客户端openssh-client和openssh-server 

如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client)

如果要使本机开放SSH服务就需要安装openssh-server:sudo apt-get install openssh-server

然后确认sshserver是否启动了: ps -e |grep ssh 

如果看到sshd那说明ssh-server已经启动了。 

posted @ 2019-03-18 16:42  daz{2}le  阅读(1061)  评论(0编辑  收藏  举报