- Joined
- Oct 7, 2015
- Posts
- 50,431
- Reaction
- 67,344
- Points
- 18,228
may mga post akong nakikita or nag aask kung paano enable ang root access for AWS amazon .. Google Cloud.. Azure VPS and etc... sa mga gumagamit ng key or pem key .. ito ang guide para makalogin tayo using root .. para di na need ng pem key or private key
instruction
1. First login to your VPS using your credentials .. pag naka login na kayo ..
type this command
# ~ sudo su
this is for us to be able to use root access
2. Then change the root password with the following command
# ~ sudo passwd root
lagay ninyo yung desired root password ninyo
3.. after finished setting the root password
the next step is to go to the SSHD_CONFIG, type the following command
# ~ nano / etc / ssh / sshd_config
hanapin yung line na ito
PermitRootLogin no
change it to
PermitRootLogin yes
and
PasswordAuthentication no
change it to
PasswordAuthentication yes
after na naichange ninyo
press CTRL + O then enter at CTRL + X to exit
Restart your VPS / server
# ~ sudo service sshd restart
after ninyo ma restart .. exit putty or kung anu man gamit ninyo
then Access ninyo ulit using ROOT
yan papasok na as root
enjoy..
C.T.T.O . diko ma alala kung kanino ko ito na tutunan
instruction
1. First login to your VPS using your credentials .. pag naka login na kayo ..
type this command
# ~ sudo su
this is for us to be able to use root access
2. Then change the root password with the following command
# ~ sudo passwd root
lagay ninyo yung desired root password ninyo
3.. after finished setting the root password
the next step is to go to the SSHD_CONFIG, type the following command
# ~ nano / etc / ssh / sshd_config
hanapin yung line na ito
PermitRootLogin no
change it to
PermitRootLogin yes
and
PasswordAuthentication no
change it to
PasswordAuthentication yes
after na naichange ninyo
press CTRL + O then enter at CTRL + X to exit
Restart your VPS / server
# ~ sudo service sshd restart
after ninyo ma restart .. exit putty or kung anu man gamit ninyo
then Access ninyo ulit using ROOT
yan papasok na as root
enjoy..
C.T.T.O . diko ma alala kung kanino ko ito na tutunan