ubuntu开启ssh
1. 安装
# sudo apt-get install openssh-server
# sudo apt-get install openssh-client
2. 启动
# sudo /etc/init.d/ssh start
3. 配置文件
# vi /etc/ssh/sshd_config
默认端口是22
4. 登录
# ssh root@192.168.60.219
5. 如果出现错误
ssh_exchange_identification: Connection closed by remote host
解决办法:
# /etc/init.d/sshd restart