0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWSにてUbuntu AMIを使ったsshでおきる Permission denied (publickey).

Posted at

#AWSでUbuntu AMIを使いたい
訳あってUbuntu Server 14.04 LTS (HVM) AMIが使いたくなり、sshでハマりました.

ssh -i <your key pass> ec2-user@<instance's IPv4>
ec2-user@<instance's IPv4>: Permission denied (publickey).

#解決策
https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
を見て解決しましたが,
ubuntu AMI の場合初期ユーザがubuntu でないといけないそうです.

ssh -i <your key pass> ubuntu@<Ipv4>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?