xorl has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write a script that sets up ssh -L x:localhost:y remotehost
without me typing my password on remotehost. I know Net::SSH:Perl will let me login without me having to type my password at run time. However I don't see where I can pass more options (specifically the -L option) to ssh.
This is only one part of the script. I'm trying to automate a secure vnc connection. I'm using the info at http://www.uk.research.att.com/archive/vnc/sshvnc.html Basically once I get the SSH port forwarding done, I'm just going to do an exec("vncviewer localhost").
So maybe I should have started this post with - "Is this the best way to set this up?"
Thanks in advance.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: [OT] Perl, SSH port forwarding, and secure VNC
by davis (Vicar) on Feb 21, 2005 at 20:57 UTC | |
by johnnywang (Priest) on Feb 22, 2005 at 05:30 UTC | |
by xorl (Deacon) on Feb 22, 2005 at 13:31 UTC | |
by Aristotle (Chancellor) on Feb 23, 2005 at 11:17 UTC | |
by xorl (Deacon) on Feb 21, 2005 at 21:29 UTC |