SercureCRT 连不上Linux 和配置SSH方法

链接Linux 提示错误信息:the remote system refused the connection

一、SecureCRT 链接不上LINUX 的 解决方法:

首先查看sshd服务的状态

service sshd status

看ssh服务有没有开启,没有开启为inactive的话需要开启服务。

service sshd start

想让他开机自动启动,就chkconfig sshd on。

另外看

iptables -L

看ssh服务有没有被禁用,iptable服务可以用iptables -F进行关闭。


二、其它一些配置SercureCRT的方法

1、检查是否安装SSH服务,如果没有

#apt-get install ssh 安装ssh服务

2、编辑配置文件

/etc/ssh/sshd_config  配置文件 

Port 3322 #修改端口为3322(自定义) 
PermitRootLogin no #禁止root用户远程登录 
PubkeyAuthertication yes #允许用key登录 
PasswordAuthertication no #禁止远程ssh客户端用密码登录

3、开启3322 端口

iptables设置 开启3322端口允许访问
iptables -I INPUT -p tcp --dport 3220 -j ACCEPT


另外配置public key 可以参考链接


你可能感兴趣的:(Connection,System,remote,refused,the,the,SercureCRT,连不上Linux)