Xshell用**连接远程Linux

1.首先下载一个XSHELL,我这里用的是Xshell_5.0,以下几个是要配置的地方

Xshell用**连接远程Linux

2.在TOOLS 下面生成新的**文件

Xshell用**连接远程Linux

Xshell用**连接远程LinuxXshell用**连接远程Linux

Xshell用**连接远程Linux

3、复制生成的公钥到远程linux里面 /root/.ssh/authorized_keys 文件中。如果没有.ssh目录,需要自己建立一个,并更改目录权限为700
[[email protected] ~]# mkdir /root/.ssh
[[email protected] ~]# chmod 700 /root/.ssh/
[[email protected] ~]# vi /root/.ssh/authorized_keys

粘贴公钥的内容,保存退出。

Xshell用**连接远程Linux

4、关闭远程linux防火墙,永久关闭selinux
 #vi /etc/selinux/config        #修改selinux的配置文件
更改“SELINUX=enforcing”为 SELINUX=disabled  保存退出。
[[email protected] ~]# /usr/sbin/sestatus -v        #查看selinux的状态命令
SELinux status:                disabled
关闭防火墙
[[email protected] ~]# iptables -F                               #清空防火墙配置
[[email protected] ~]# /etc/init.d/iptables save          #清空防火墙配置后,记得保存

iptables:将防火墙规则保存到 /etc/sysconfig/iptables:    [确定]

Xshell用**连接远程Linux

5.通过日志也可以查看成功的信息

Xshell用**连接远程Linux