Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log in to ssh without public key? Only with username and password

I want to know if in google cloud it is possible to log in to my ssh server without publickey, since I need to delete and create users frequently and it becomes annoying to have to generate the keys

like image 742
Nilberto César Avatar asked Dec 12 '16 00:12

Nilberto César


People also ask

Can you SSH without a key?

Most notably, there is a key authentication system and a password authentication system. You can actually set up an SSH login on a Linux server which requires no password. However, you do need a key, but you get it from the OpenSSH utility package. This provides you with a key generator on your local computer.


1 Answers

Head over to the file /etc/ssh/sshd_config, and change the following line :

PasswordAuthentication yes

Then restart sshd :

sudo service ssh restart
like image 65
HakRo Avatar answered Oct 20 '22 00:10

HakRo