File-Remote - file::remote as another user

Posted on Thu Jul 3 16:44:42 2008 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.
Write a response