Hi Folks,<br>
<br>
I have hit the wall (yet again) with my limited skills :o)<br>
<br>
I wrote a bash script to remotely backup files with ssh. I have set up
the ssh server, and the laptop to communicate without passwords.<br>
<br>
So....<br>
1) If from the terminal, I try a<br>
$ssh -l carthik <a href="http://1.sh.nu">1.sh.nu</a> -p 8888<br>
<br>
I am logged in without being prompted for a password.<br>
<br>
2) If I have the same in a shell script called rsync_ssh_push.sh and execute it thus:<br>
$ ./rsync_ssh_push.sh<br>
<br>
I am logged in without being prompted for a password<br>
<br>
However<br>
3) If I execute the same script using<br>
$ sudo ./rsync_ssh_push.sh<br>
<br>
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.<br>
<br>
Any hints as to why $sudo ./rsync_ssh_push.sh behaves differently from $ ./rsync_ssh_push.sh ?<br>
<br>
Thanks,<br>
Carthik.<br>
<br>
P.S. I can share the script once I am done fixing this problem :)<br clear="all"><br>-- <br>Ph.D. Candidate<br>University of Central Florida<br>Homepage: <a href="http://carthik.net">http://carthik.net</a>