先检查是否安装了ssh
dpkg --list|grep ssh
发现其实Ubuntu 11.10已经默认安装了客户端,所以我们只要安装服务端就OK了,如果实在没安装,试试这个命令:
#sudo apt-get install openssh-client
安装client-server 命令
#sudo apt-get install openssh-server
启动ssh服务:
#sudo /etc/init.d/ssh start
停止ssh服务:
#sudo /etc/init.d/ssh stop
重启ssh服务:
#sudo /etc/init.d/ssh restart