Link to home
Start Free TrialLog in
Avatar of mw-hosting
mw-hostingFlag for Afghanistan

asked on

restrict ssh root login / allow root to rsync

Is there a way to restrict root login via ssh but allow root to rsync from another box?
Avatar of donciakas
donciakas
Flag of Lithuania image

You can restrict root to login directly - first login with user, then use "su" command to become root and do everything You need. Also i would suggest connecting to ssh while using RSA keys, which is more secure connection.
Here is a link how to do this on ubuntu (it is basically the same for all distros):
https://help.ubuntu.com/community/SSH/OpenSSH/Keys

P.s. also You can restrict access to ssh service from IP's You want by configuring Your firewall

Good Luck!
forgot to mention the link for permitting direct root access
http://www.howtogeek.com/howto/linux/security-tip-disable-root-ssh-login-on-linux/
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial