How to enable ssh root password login on centos or ubuntu

From your shell window open file path like below with your favorite text editor :

vim /etc/ssh/sshd_config

change the following parameter no to yes

PermitRootLogin yes
PasswordAuthentication yes

If you don’t want to enable root login then set permitrootlogin to no, create a user set a password & give the user permission as you want. The user can also login ssh with password you will give.

Now restart the ssh daemon following this command :

systemctl restart sshd

Now you can ssh password login remotely to your server.

Thank you for reading this article.

Was this helpful?

1 / 0

Leave a Reply 30

Your email address will not be published. Required fields are marked *


eAcrwELUqFYk

eAcrwELUqFYk

Done well, thank you.

Creative

Creative

Pass, thanks

Moldova

Moldova

deposit

Legacy

Legacy

awesome.

brislicks

brislicks

Thank you, bro

Outdoors

Outdoors

Nice Job!

payment

payment

Worked!

Mouse

Mouse

Well done!

Zimabw

Zimabw

International

back-end

back-end

Well done!

quantify

quantify

Great Job!

Kidomas

Kidomas

Fine job!

index

index

Real work!

Excutie

Excutie

As-Salam

Progras

Progras

transmitting

Directives

Directives

Lesotho

QbWjICZoRS

QbWjICZoRS

Wow awesome!

Cambridgeshire

Cambridgeshire

WOW,Fantastic

cuttindge

cuttindge

It’s a amazing post, thanks

override

override

Bravo, Thanks bro!

moderator

moderator

navigate

Borders

Borders

Extra ordinary

Smalli

Smalli

Brightest!

Customemn

Customemn

evolve