Re: [CentOS] vncviewer via gateway option question

2008-07-15 Thread Filipe Brandenburger
On Tue, Jul 15, 2008 at 10:36, Robert Moskowitz <[EMAIL PROTECTED]> wrote: >>> VNC_VIA_CMD=/usr/bin/ssh -p 7722 -f -L "$L":"$H":"$R" "$G" sleep 20 >> >> You could actually do this a little bit easier, by defining a user ssh >> config file in ~/.ssh > > This simplified my ssh commands, not having to

Re: [CentOS] vncviewer via gateway option question

2008-07-15 Thread Robert Moskowitz
Jim Perrin wrote: On Mon, Jul 14, 2008 at 9:18 PM, Robert Moskowitz <[EMAIL PROTECTED]> wrote: How do I set up this environment variable on my notebook. Would I modify my .bash_profile file, and is the format of the added line:\ VNC_VIA_CMD=/usr/bin/ssh -p 7722 -f -L "$L":"$H":"$R" "$G" sle

Re: [CentOS] vncviewer via gateway option question

2008-07-14 Thread Jim Perrin
On Mon, Jul 14, 2008 at 9:18 PM, Robert Moskowitz <[EMAIL PROTECTED]> wrote: > How do I set up this environment variable on my notebook. Would I modify my > .bash_profile file, and is the format of the added line:\ > VNC_VIA_CMD=/usr/bin/ssh -p 7722 -f -L "$L":"$H":"$R" "$G" sleep 20 You could a

[CentOS] vncviewer via gateway option question

2008-07-14 Thread Robert Moskowitz
the man page for vncviewer presents the -via gateway option to use ssh through a gateway. I understand if I want a secure vnc connection to server.foo.com I can use the command: vncviewer localhost -via server.foo.com But I have moved my SSHD services from port 22 to port n. So according t