首先看下是否已经安装
如果有
[img]http://glamey.iteye.com/upload/picture/pic/92034/27c68f37-36fe-3b7c-9f33-81f338be545f.jpg[/img]
如果没有的话,请按照下边的步骤进行:
Ubuntu缺省没有安装SSH Server,使用以下命令安装:
不过Ubuntu缺省已经安装了ssh client。
可以通过编辑
配置完成后重起:
dpkg --list | grep 'ssh'
如果有
openssh-client openssh-server
说明已经安装过。
[img]http://glamey.iteye.com/upload/picture/pic/92034/27c68f37-36fe-3b7c-9f33-81f338be545f.jpg[/img]
如果没有的话,请按照下边的步骤进行:
Ubuntu缺省没有安装SSH Server,使用以下命令安装:
sudo apt-get install openssh-server openssh-client
不过Ubuntu缺省已经安装了ssh client。
可以通过编辑
/etc/ssh/sshd_config
文件来配置 OpenSSH
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
sudo chmod a-w /etc/ssh/sshd_config.original
配置完成后重起:
sudo /etc/init.d/ssh restart