[Israel.pm] web-based script

Shlomo Yona shlomo at cs.haifa.ac.il
Tue Aug 31 05:35:49 PDT 2004

On Tue, 31 Aug 2004, Anatoly Vorobey wrote:

> ssh -A login1 at server1 ssh -A login2 at server2 ./script.sh
> This logs you into server1 and then runs "ssh -A login2 at server2 ./script
> sh", which then logs you into server2 and then runs "./script.sh".
> script.sh resides on server2 and has the sftp and chmod commands you
> need.

That's pretty clever.

> Run the ssh auth agent (man ssh-add) on the originating machine, and
> then -A will carry authentication forward through the chain. Or set up
> correct auth on all servers beforehand and skip the -As.
> As others wrote, there're more ways to do it; this one is merely the
> most simple-minded and easy to understand.

Thanks. I'll give it a try.

Shlomo Yona
shlomo at cs.haifa.ac.il

More information about the Perl mailing list