转载于:http://www.cnblogs.com/Huntercat/archive/2008/06/23/1228214.html
安装OpenSSH
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