Login to root without password
How to login to root without password from normal user.
Actuall I have to switch the users many times. So want this one |
Test question or multiple logins for same user?
|
you do not
|
Hi,
You can run the following script for login to root without password - You need to add your key to the root authorized_keys file on the server. On the Server sudo su - root ssh-keygen (to make sure root has the .ssh directory etc) Add your public key to .ssh/authorized_keys Check your sshd_config settings (/etc/ssh/sshd_config) are correct one last time. PermitRootLogin without-password RSAAuthentication yes PubkeyAuthentication yes Ensure those settings take effect by restarting ssh: service ssh restart On the Client Login to the server as root using: ssh root@yourserveraddress Note: If this doesn't work you'll need to do some further investigations.. Try posting the results of an ssh -v root@yourserveraddress. Hope this will help you. |
Quote:
|
All times are GMT -5. The time now is 08:47 PM. |