Re: vncviewer via gateway option question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Jul 14, 2008 at 9:18 PM, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> 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 actually do this a little bit easier, by defining a user ssh
config file in ~/.ssh

You could do something similar to:

Host myvncgateway
HostName server.com
User backupuser #default username
Port 2222 # Use this port instead of 22.


There's a whole mess of other options you can drop in here. man
ssh_config for all the goodies.

-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux