首页 > 解决方案 > 登录服务器时拒绝访问

问题描述

我在 Gen4 VPS Linux 服务器上以管理员身份登录我输入了几次正确的密码但它显示Permission denied, please try again.

我在命令提示符下的代码如下:

C:\Users\Saood Ahmad>ssh root@ip adress
root@ip address's password:
Permission denied, please try again.

请帮帮我谢谢

标签: linuxservervirtual-machine

解决方案


可能的解决方案:

在您的服务器上

 1. Allow ssh via firewall, port 22 (ufw or firewalld)
 2. Copy your ssh-key to your server (`ssh-copy-id`)
 3. Check on your host for firewall rules
 4. ssh-key corruption / renew your ssh-key 

推荐阅读