简介

ssh连接不上腾讯服务器

SSH连不上腾讯服务器

 

可以根据下面的原因排查一下,如果可以帮助大家少走弯路,那就太好了

 

检查步骤

1.检查服务器端口22入站,出站是否已放行

2. 看看VNC是否可以连接上,https://cloud.tencent.com/document/product/213/35701

3.systemctl status sshd 检查一下ssh的状态

SSH连不上腾讯服务器

 

 4.sshd -t 查看报错 ,这个ssh服务启动报错是因为这几个文件的权限太大了

SSH连不上腾讯服务器

 

 

 

解决方案

修改文件的权限

chmod 600 /etc/ssh/ssh_host_rsa_key
chmod 600 /etc/ssh/ssh_host_ecdsa_key
chmod 600 /etc/ssh/ssh_host_ed25519_key

systemctl restart sshd
执行完成之后重启一下 ssh服务

相关文章:

  • 2021-12-13
  • 2021-04-12
  • 2021-11-09
  • 2021-09-04
  • 2021-05-14
猜你喜欢
  • 2021-06-27
  • 2021-09-13
  • 2021-08-02
  • 2021-05-23
  • 2021-11-29
  • 2021-10-22
  • 2021-04-12
相关资源
相似解决方案