ubuntu默认安装完成后只有ssh-agent(客户端模式),管理员模式需要另外安装,ubuntu的apt-get几乎无所不能。
1.
在管理员模式#下运行
apt-get install openssh-server即可安装。
突然报错:opensshserver has no installation candidate
# apt-get install openssh-server Reading package lists... Done Building dependency tree... Done Package aptitude is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package <packagename> has no installation candidate
解决方法如下:
# apt-get update
# apt-get upgrade
# apt-get install openssh-server
这样就可以正常使用apt-get了~
2.检查ssh服务开启状态
网上看到很多方法,比如ps -e |grep ssh或service ssh status均可.
参考:
http://jingyan.baidu.com/article/00a07f38a5c05482d128dc5f.html
http://blog.csdn.net/liuyifeng_510/article/details/7081490
http://www.2cto.com/os/201108/99318.html
http://wenku.baidu.com/link?url=H3VusnfI4VIm88J2_uxvOGOXGSVo2Uq2kkPSErEZPD5vbghAGbTMfJhNocZbVpTmnL_mfdQWcmMGFsTc1ZQga1kH8EbZ_amJIPGY0t10mru