Monday, April 9, 2018

How to Enable Password-based Login for Amazon EC2 / Google Compute Engine

Although ssh key-based login is preferred to password-based login, sometimes clients still need password-based login. Amazon EC2 / Google Compute Engine disable password-based login by default. To enable it,

# vi /etc/ssh/sshd_config

Find the line
PasswordAuthentication no
and change it to
PasswordAuthentication yes

Save the file and restart sshd:
# /etc/init.d/sshd restart
Caution: whenever making changes to your sshd.config file, be certain that you have an active shell session in case you've made a fatal syntax error. After restarting sshd, log in from another session to test it before terminating your active terminal session.

Featured Post

British-based startup ARC unveiled its first motorcycle model in Milan this week

One being described as fast, advanced and expensive. The so-called Vector costs more than $100,000