SecureCrt 连接Redhat linux

1、Vmware虚机设置网络模式为桥接Bridge.保证linux中能ping通windows,windows中也能ping通linux.

2、修改sshd_config文件,命令为:vi /etc/ssh/sshd_config

   将#PasswordAuthentication no的注释去掉,如果为NO将其修改为YES

       将#PermitRootLogin yes

    # Port 22

          #Protocol 2,1 三行的注释去掉。 

3、验证SSH服务状态,命令为:/etc/init.d/sshd status

4、重新启动SSH服务,命令为:/etc/init.d/sshd restart

5、crt中设置SSH2连接。

 6、确保linux中防火墙关闭,使用# service iptables stop命令关闭防火墙。

 7、出现登录提示后,说明已经成功连接。

原文地址:https://www.cnblogs.com/wangyuelang0526/p/3225553.html