T
T
Taras Labiak2016-04-13 04:26:28
SSH
Taras Labiak, 2016-04-13 04:26:28

How to connect via ssh with a password?

There is an Ubuntu server on Amazon. During installation, CMS requires you to enter your SSH login and password
c734a8c47cf54136bd32d8ec718c5061.png
. I entered 127.0.0.1 in the IP address.
But now you can only connect to the server using a pem file. How to set up SSH so that you can log in to 127.0.0.1 using your login and password? Or, at least from a public IP...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nirvimel, 2016-04-13
@kissarat

Change to /etc/ssh/sshd_config:
to:
PasswordAuthentication yes

Y
Yuri Chudnovsky, 2016-04-13
@Frankenstine

On Ubuntu, root does not have a password, so login by default is not possible under it, even if it is allowed in the ssh server settings. So first you need to give the root a good, strong password. Then log in, making sure that root login is allowed in the server config (PermitRootLogin yes) ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question