1

ssh remote command using password-less sudo fails

view story
linux-howto

http://serverfault.com – Logged on as bryan@localserver, I'm trying to perform a backup using rsync on a remote host bryan@remoteserver. I need the rsync connection to elevate privileges on the remote host using --rsync-path='sudo rsync', but I'm having problems, so have decided to simplify matters and just try to get the following working first: bryan@localserver # ssh bryan@remoteserver 'sudo /usr/bin/whoami' Once, I've cracked this, I should be able to get rsync working. What I've done so far: I've got ssh configured so that bryan@localserver can ssh to bryan@remoteserver using key instead of a password. b (HowTos)