我想使用我的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上传/下载文件?
我获得了AWS Console访问权限的帐户,其中有2个实例正在运行,我无法关闭(在生产中).但是,我想获得对这些实例的SSH访问,是否可以创建一个新的Keypair并将其应用于实例,以便我可以SSH?获取当前创建的实例的密钥对的现有pem文件目前不是一种选择.
如果这不可能,还有其他方法可以进入实例吗?
authentication permissions ssh amazon-ec2 amazon-web-services
我试图用SSH连接到我的EC2实例,我变得疯狂.我已阅读此帖并尝试了所有用户组合:
AWS ssh访问'Permission denied(publickey)'问题
它仍然不适合我.知道我错过了什么吗?
roberto@ubuntu:~/keys$ ssh -v -i ec2-key-pair.pem ec2-user@ec2-54-72-242-0.eu-west-1.compute.amazonaws.com
OpenSSH_6.6, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ec2-54-72-242-0.eu-west-1.compute.amazonaws.com [54.72.242.0] port 22.
debug1: Connection established.
debug1: identity file ec2-key-pair.pem type -1
debug1: identity file ec2-key-pair.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6p1 Ubuntu-2ubuntu1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH* compat …Run Code Online (Sandbox Code Playgroud) 几个月前我启动了一个EC2实例,当时我将.pem密钥存储在我的电脑中.PC崩溃了,我不得不重新安装Windows,我没有.pem文件的备份
有什么方法可以让我在EC2实例上获得提示 - 任何方式ssh或以其他方式获取实例?
我目前在国外,我正在尝试通过ssh连接到我的EC2实例,但出现错误 ssh: connect to host ec2-34-207-64-42.compute-1.amazonaws.com port 22: Connection refused
我打开了前往纽约的VPN,但仍然没有任何变化。无法连接到该实例的原因可能是什么?
该实例仍在运行并为网站提供服务,但是我无法通过ssh连接。这是我所住的wifi或实例本身的问题吗?
我在aws ec2上创建了一个amazon unix/linux的实例,当我试图从我的ubuntu控制台访问我的实例时,我收到一个错误"ssh -i mpigeon.pem ec2-50-17-134-152.compute-1 .amazonaws.com权限被拒绝(公钥)."
问题是如何解决的?
试图部署我的第一个Web应用程序,并且难以通过SSH进入AWS.当我进入:
ssh -v -i ec2-myportfolio.pem root@ec2-23-23-165-24.compute-1.amazonaws.com
Run Code Online (Sandbox Code Playgroud)
我得到Permission denied(公钥).我在堆栈上看了几个其他的响应,就像 这样和这个,但是没有解决问题.以下是我得到的错误.在此先感谢您的帮助.
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
Warning: Identity file ec2-myportfolio.pem not accessible: No such file or directory.
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to ec2-23-23-165-24.compute-1.amazonaws.com [23.23.165.24] port 22.
debug1: Connection established.
debug1: identity file /Users/jonathanschen/.ssh/id_rsa type 1
debug1: identity file /Users/jonathanschen/.ssh/id_rsa-cert type -1
debug1: identity file /Users/jonathanschen/.ssh/id_dsa type -1
debug1: identity file /Users/jonathanschen/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software …Run Code Online (Sandbox Code Playgroud)