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?

3 / 1

Leave a Reply 40

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

upsim

upsim

Thanks for sharing such a nice article.

Xamni

Xamni

I will highly recommend this website!

Inrediblble

Inrediblble

greeting

Papeinea

Papeinea

Compatible

Antoniosof

Antoniosof

He wants, groups and hosts in Linux was helpful as root: sudo vi 3! And add or change the default username is root and user1 users to login is using admin.

Reverse-engineered

Reverse-engineered

Specialist

index

index

quantifying

Steel

Steel

cross-platform

seo serices

seo serices

Thanks a lot for the article.Thanks Again. Will read on…

tangballall

tangballall

I սsed to be aƅle to find gօod info from yoᥙr blog articles.