SSH sudo password problem

Jhair Tocancipa Triana jhair_tocancipa at gmx.net
Fri Oct 14 20:54:33 BST 2005


Carthik Sharma writes:

 > 3) If I execute the same script using
 > $ sudo ./rsync_ssh_push.sh

 > I am repeatedly asked for my (carthik's) password, for each instance of an
 > ssh statement in the script! In the script I try to log in to the remote
 > server as user carthik, not as user "root" or anything of that sort.

With sudo the script will run as root and ssh will search for your
authentication keys in /root/.ssh/* instead of /home/youruser/.ssh/*

Are your authentication keys in the /root/.ssh directoy valid?

-- 
--Jhair

PGP key available from public servers - ID: 0xBAA600D0





More information about the ubuntu-users mailing list