2020.12.02
1、先检查linux是否开启shh服务。
ssh localhost
(1)如果提示:ssh: connect to host localhost port 22: Connection refused,则需要下载安装ssh,使用下面命令:
sudo apt-get install openshh-server
(2)安装结束后,启动ssh
service sshd start
(3)然后使用命令检查:
ps -e | grep ssh
如果提示:
(4)则需要修改/etc/ssh/下的ssh_config文件,在此之前需要修改文件的权限。
sudo chmod 777 /etc/ssh/ssh_config
(5) 然后使用下面命令打开ssh_config文件修改
vi /etc/ssh/ssh_config
(6)保存退出后,再重新启用ssh ,重新执行(2),(3),如果提示:
启动完成。
2、查看当前Linux的Ip
r
3、设置MobaXterm
连接完成。