xshell连接ubuntu(SSH)
1、在ubuntu系统执行更新
sudo apt-get update
2、安装openssh-sever以及openssh-client;ubuntu系统默认没有安装该协议
sudo apt-get install openssh-server openssh-client
3、检测是否安装成功
1)直接用xshell进行连接
2)用命令ps -e|grep ssh查看是否有ssh的进程出现
3)用命令netstat -antup 查看端口号22是否开启
4、winscp使用root账户连接配置
1.编辑 /etc/ssh/sshd_config文件: sudo vi /etc/ssh/sshd_config
将PermitRootLogin 的值改成 yes
将PermitEmptyPassword 的值改成 no
保存退出
2.重启ssh:
sudo service ssh restart
3.即可在WinSCP用root用户登陆
浙公网安备 33010602011771号