大家好,我正在尝试使用连接到我的远程服务器,ssh -i "my_keyprivate.pem" instance@ipaddr
但收到错误消息权限被拒绝(公钥)
当我这样做时,ssh -vvv
我得到了这个
$ ssh -vvv "my_keyprivate.pem" instnace@ipaddr
OpenSSH_9.0p1, OpenSSL 1.1.1o 3 May 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/c/Users/toto/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/c/Users/toto/.ssh/known_hosts2'
debug2: resolving "my_openssh.pem" port 22
debug3: resolve_host: lookup my_openssh.pem:22
ssh: Could not resolve hostname my_openssh.pem: Name or service not known
C:\Users\toto\.ssh
我允许我的用户对象拥有完全控制权,这是我的文件夹的内容
my_keyprivate.pem
known_hosts
我不知道问题出在哪里?