LoginSignup
5
0

More than 5 years have passed since last update.

AWSのEC2(Ubuntu Server 16.04 LTS)にログインできない

Last updated at Posted at 2017-05-30

メモ

AWSにubuntuのサーバー立ててログインしようと思ったけどできなかったときのメモ
なんで?

結論

userが違う
Amazon Linuxだとec2-userでいいけど、ubuntuはubuntu
ただのアホ。。

誤)

ssh -i ~/.ssh/key-xxxx.pem ec2-user@xx.xx.xx.xx
Permission denied (publickey).

正)

ssh -i ~/.ssh/key-xxxx.pem ubuntu@xx.xx.xx.xx
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1013-aws x86_64)
5
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
5
0