EC2 SCP -i mykey.pem警告:标识文件mykey.pem无法访问:没有这样的文件或目录。权限被拒绝(公钥) [英] ec2 scp -i mykey.pem Warning: Identity file mykey.pem not accessible: No such file or directory. Permission denied (publickey)

查看:3743
本文介绍了EC2 SCP -i mykey.pem警告:标识文件mykey.pem无法访问:没有这样的文件或目录。权限被拒绝(公钥)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试简单的目录或文件上传到Amazon EC2实例。我使用如下命令在独立的Java SSH客户端和WinSCP的:

  SCP -i mykey.pem〜/下载/ zuni.jpg bitnami@ec2-184-72-159-94.compute-1.amazonaws.com:/家庭/汇出/应用程序/ Magento的/

警告:标识文件mykey.pem无法访问:没有这样的文件或目录。
 

权限被拒绝(公钥)。

我试图找到实例上的键不能,甚至当我看到一堆其他的质子交换膜键。它没有找到.pem文件。很多人都上传到EC2的这个问题。

  1. 我如何找到mykey.pem的实例(我想彻底,发现在/ etc / SSL /证书,但我的重点不在那里)。

  2. 为什么不是这方面的工作?

解决方案

关键的应该是你的本地计算机而不是实例上。如果你没有一个尝试生成它使用AWS管理页面

Trying to upload simple a directory or file to an Amazon ec2 instance. I am using the command as follows in the standalone java ssh client and winscp:

scp -i mykey.pem ~/Downloads/zuni.jpg bitnami@ec2-184-72-159-94.compute-1.amazonaws.com:/home/bitnami/apps/magento/

Warning: Identity file mykey.pem not accessible: No such file or directory.

Permission denied (publickey).

I tried finding the key on the instance and couldn't, even when I saw a bunch of other .pem keys. It's not finding the .pem file. Many people have this problem of uploading to ec2.

  1. How do I find mykey.pem on the instance (I tried exhaustively and found /etc/ssl/certs but my key wasn't in there).

  2. Why isn't this working?

解决方案

The key should be on your local machine not the instance. if you don't have one try generating it using aws admin page

这篇关于EC2 SCP -i mykey.pem警告:标识文件mykey.pem无法访问:没有这样的文件或目录。权限被拒绝(公钥)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆