Posted on 2008-07-03 13:44:42-07 by galitz
file::remote as another user
I would like to connect to a remote system using a different username via file::remote via ssh. Can I use:
my $secure = new File::Remote (rsh => "/usr/bin/ssh -l otheruser -F /usr/local/etc/ssh_config", rcp => "/usr/bin/scp");
or can I even get away with something like this:
open (FILE,"otheruser@otherbox:/tmp/myfile");
Thanks.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.