How to setup SSH Access for Amazon EC2 instance?

2019-03-07 12:53发布

I need SSH access to an Amazon EC2 instance running Ubuntu 10.4. All I got is the amazon username and password. Any ideas?

13条回答
虎瘦雄心在
2楼-- · 2019-03-07 13:41

You need to create a key pair first - do that using your EC2 console. Then use your private key to SSH into the server (the username is ec2-user) using a SSH client of your choice.

Once in, you can issue a sudo su - to gain root if you want (note: you cant log in as root directly).

查看更多
登录 后发表回答