首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过SSH连接到服务器

无法通过SSH连接到服务器
EN

Stack Overflow用户
提问于 2018-06-01 02:36:57
回答 1查看 4.1K关注 0票数 3

我试图用SSH连接到AWS服务器。但出于某种原因我不能。当我跑到下面的时候:

ssh -i <keypair.pem> ec2-user@<ip> -vvv

我得到:

OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "<ip>" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to <ip> [<ip>] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file <keypair.pem> type -1 debug1: key_load_public: No such file or directory debug1: identity file <keypair.pem>-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4

我猜这是路由器ip禁止配置问题吧?我能做什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-01 03:02:58

检查远程.ssh目录的权限和内容。在authorized_keys文件中有您的公钥吗?请参阅下列链接

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50635347

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档