P.V.Anthony wrote:
Hi,

Need to ssh into some servers. The servers are setup, that it is only possible to ssh as user "xxx". Root is not allowed to ssh.

Now I need to ssh as root to sync some files.

Is there a way to setup ssh so that if ssh from a particular ip then it is possible to ssh as root?

You can force certificate-based logins for root in sshd_config

>> snip <<
PermitRootLogin  without-password

>> snip <<

NOTE!: Remember to properly configure your RSA/DSA certs in "/root/.ssh/authorized_keys" BEFORE you restart sshd, or you might lock yourself out of remote root (especially irksome if you have no regular user-account to login with to repair damage).

Cheers
Stephan

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to