ubuntu 桌面版没有安装 openssh-server,所以要装一下
apt-get install openssh-server,如果失败了,需要使用apt-get upgrade && apt-get update
因为可能是新安装的系统,源需要更新一下。
之后如果说openssh-server需要的openssh-client不一致,那么,需要将openssh-client降级,因为ubuntu默认安装了一个
最新版的ssh client,所以需要执行 apt-get
install
openssh-client=1:6.6p1-2ubuntu1 ,具体参考这篇文章
http://www.cnblogs.com/mliudong/p/4094519.html
好了,现在可以安装ssh server了,安装完了,启动不了。。。。
http://jingyan.baidu.com/article/00a07f38a5c05482d128dc5f.html 这篇文章可以帮到你,因为22号端口没有正常开启,所以需要修改下
ssh_config配置,最后重启下系统就OK了