Is it possible to connect a EC2 Linux instance via ssh without the key pair?
I can connect to my EC2 Linux instance via ssh using the key pair (*.pem). Is it somehow possible to connect it with ssh with out the pem file?
Solution 1:
You can create a regular user account with a password and use that to log in, but it's not as secure as using SSH keys; you'll be open to script kiddies trying to crack your passwords. You could also enable password access for root if you're really not too worried about security.
Solution 2:
vi /etc/ssh/sshd_config
- PasswordAuthentication no
+ PasswordAuthentication yes
service sshd restart