ubuntu上安装ssh
首先看下是否已经安装
dpkg --list | grep 'ssh'
openssh-client openssh-server说明已经安装过。
sudo apt-get install openssh-server openssh-client
/etc/ssh/sshd_config文件来配置 OpenSSH
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.originalsudo chmod a-w /etc/ssh/sshd_config.original
sudo /etc/init.d/ssh restart