相关疑难解决方法(0)

无法打开与身份验证代理的连接

我遇到了这个错误:

$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
!  Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter.
Run Code Online (Sandbox Code Playgroud)

我试图添加密钥,我在下面收到此错误:

$ ssh-add ~/.ssh/id_rsa.pub
Could not open a connection to your authentication agent.
Run Code Online (Sandbox Code Playgroud)

ssh ssh-agent

1473
推荐指数
29
解决办法
114万
查看次数

SSH访问Amazon EC2实例时权限被拒绝(publickey)

我想使用我的Amazon ec2实例,但遇到以下错误:

Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

我创建了密钥对并下载了.pem文件.

鉴于:

chmod  600 pem file.
Run Code Online (Sandbox Code Playgroud)

然后,这个命令

ssh -i /home/kashif/serverkey.pem  ubuntu@ec2-54-227-242-179.compute-1.amazonaws.com
Run Code Online (Sandbox Code Playgroud)

但有这个错误:

Permission denied (publickey)
Run Code Online (Sandbox Code Playgroud)

另外,如何连接filezilla上传/下载文件?

ssh amazon-ec2 amazon-web-services

355
推荐指数
9
解决办法
56万
查看次数

警告:未经保护的私人密钥文件!尝试SSH到Amazon EC2实例时

我正在努力在Amazon EC2实例上设置Panda.我昨晚设置了我的帐户和工具,使用SSH与我自己的个人实例进行交互没有任何问题,但是现在我没有被允许进入Panda的EC2实例. 熊猫入门

我收到以下错误:

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

Permissions 0644 for '~/.ec2/id_rsa-gsg-keypair' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
Run Code Online (Sandbox Code Playgroud)

为了昨晚进入我的个人实例,我已经将我的密钥对chm编译为600,并且在长度上进行了实验,将权限设置为0甚至生成新的密钥字符串,但似乎没有任何工作.

任何帮助都将是一个很大的帮助!


嗯,好像除非在目录上将权限设置为777,ec2-run-instances脚本无法找到我的密钥文件.我是SSH的新手,所以我可能会忽略一些东西.

ssh amazon-ec2 chmod amazon-web-services

173
推荐指数
7
解决办法
16万
查看次数

ssh - 控制套接字不存在 - 操作超时

当我尝试从 Mac 通过 SSH 连接到远程桌面时,收到以下错误消息:

$ ssh -vvvv john@dev-dsk-john.com
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/john/.ssh/config
debug1: /Users/john/.ssh/config line 26: Applying options for *
debug1: /Users/john/.ssh/config line 40: Applying options for dev-dsk*.amazon.com
debug1: /Users/john/.ssh/config line 165: Applying options for *.us-east-*.amazon.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
debug1: Control socket "/tmp/ssh_mux_dev-dsk-john.com_22_john" does not exist
debug2: resolving "dev-dsk-john.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to dev-dsk-john.com [10.1.133.160] port 22.
debug1: connect to address 10.1.1.1 port …
Run Code Online (Sandbox Code Playgroud)

ssh

6
推荐指数
1
解决办法
1万
查看次数

权限被拒绝 (publickey) Amazon Linux aws

我的 AWS 上运行着两个实例。我对他们两个都有相同的密钥对。我使用这两个实例很长时间了。但今天,如果我运行此命令,在尝试通过终端登录时,我会在一个实例上遇到错误。

ssh -i mypem.pem ec2-user@52.xx.xxx.xxx
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

但是如果我尝试使用同一文件登录其他实例pem。它有效,我可以成功登录它。

我已经尝试了这里提出的所有解决方案

SSH 访问 Amazon EC2 实例时权限被拒绝(公钥)

尝试通过 SSH 连接到 Amazon Ec2 实例 - 权限错误

但对我来说没有任何作用

如果我这样做

ssh -i mypem.pem ec2-user@52.xx.xxx.xxx -vvv
Run Code Online (Sandbox Code Playgroud)

结果是这样的

    OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "52.xx.xxx.xxx" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 52.xx.xxx.xxx [52.xx.xxx.xxx] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file mypem.pem type -1
debug1: key_load_public: No such file …
Run Code Online (Sandbox Code Playgroud)

authentication permissions ssh amazon-ec2 amazon-web-services

4
推荐指数
1
解决办法
1万
查看次数

在Windows 10 bash上连接到Amazon EC2实例 - 权限被拒绝(publickey)

我正在尝试使用Windows 10上的bash连接到我的Amazon EC2实例.我已经下载了MyKey.pem它显示了这条消息

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for 'MyKey.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: MyKey.pem
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

在搜索时我发现此问题尝试SSH到Amazon Ec2实例 - 权限错误但没有帮助我.我几乎跟随亚马逊文档的每一步都没有结果.

我试图改变密钥的模式使用,但没有与我一起工作

chmod 400 MyKey.pem
Run Code Online (Sandbox Code Playgroud)

我也尝试使用PuTTy连接,但它告诉我server refused our key 并告诉我这个

PuTTy致命错误

我该如何解决?

ssh bash amazon-ec2 amazon-web-services windows-10

2
推荐指数
1
解决办法
4160
查看次数

SSH 到 EC2 实例期间权限被拒绝(公钥)

我的密钥对和可能的 SSH 权限有问题,因为我无法再通过 SSH 连接到我的 EC2 实例。

我执行以下命令:

ssh -i /Users/Matt/Downloads/private-key.pem ec2-user@XX.XXX.XXX.XXX
Run Code Online (Sandbox Code Playgroud)

请记住,我刚刚在 AWS 管理控制台中创建了这个密钥对,它将密钥 .pem 文件下载到我的下载文件中。然后我在回复“是”以继续连接后收到以下错误消息。

Failed to add the host to the list of known hosts 
(/Users/Matt/.ssh/known_hosts).
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/Matt/Downloads/private-key.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Matt/Downloads/private-key.pem": bad permissions
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

好的,所以我花了一天的大部分时间来解决这个问题,并尝试检索 pub 文件,将其作为密钥对导入等,但我仍然获得权限被拒绝(公钥)或提示一个不存在的实例关联的密码。我相当确定这一定是我自己的 SSH 权限问题,但我迷路了。

这是我在 ssh -v …

linux ssh amazon-ec2 amazon-web-services

2
推荐指数
1
解决办法
3529
查看次数