ssh链接可以远程管理linux设备,默认端口是22,安装好系统默认是不开启的,需要修改配置文件
1.修改/etc/ssh/sshd_config配置文件
vim /etc/ssh/sshd_config
1.1 找到#PasswordAuthentication yes 把#的注释去掉
PasswordAuthentication yes
1.2 将PermitRootLogin without-password修改为:
PermitRootLogin yes
2. 然后启动ssh服务,这时候先不要链接,因为链接不上,
命令是:/etc/init.d/ssh start
3.然后设置开机自动启动
命令是:update-rc.d ssh enable
4.这次重启系统并且使用xshell在链接
reboot