Le 2013-09-30 08:29, John Tate a écrit : > I want to be able to log in as root by SSH with a specific IP address. > This is so rsync can log in to the server easily and backup many files > owned by many different users and groups. Rather than a script on the > server logging into the server with the backups with many files and > many different users. > > Can it be done?
You can use Match statement in your sshd_config to allow root connections only on a particular IP. Also, if you use RSA, DSA or ECDSA key, you should add it to the file authorized_keys on the server and restrict this key to a single command with command="..." Do not turn on PermitRootLogin without Match statement. see sshd(8) for the keywords you can add in your authorized_keys to limit the root access.