Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-28-2005, 10:34 AM   #1
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 329

Rep: Reputation: 30
Server Defined SSH Tunnels


I often use SSH tunnels with putty to VNC into my windows machine at home. Is there a way to define the ssh tunnels on the server so I don't have to set it each time I go to a new computer?


Old 09-29-2005, 09:11 PM   #2
LQ Newbie
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0


You can set all options on a per-host basis (wild-cards allowed) in either $HOME/.ssh/config for user specific settings or in
/etc/ssh_config for all users on the machine.

To tunnel your vnc session when connecting to <somehost> you'd want to add something like this:

Host <somehost> #this should be a valid host name or ip address
        LocalForward 5900:remote_vnc_server:5900
The command
man ssh_config
will give you a list of the many other options you can configure.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH-Tunnels, Firewall, VNC bojo Linux - Security 3 03-16-2006 06:08 AM
Creating a router out of SSH Tunnels. Technoslave Linux - Networking 1 10-04-2004 07:07 PM
SSH tunnels and VNC, yet again. Edaph Linux - Security 7 05-23-2004 10:55 AM
Automatic SSH Tunnels fearofcarpet Linux - Software 1 12-05-2003 12:36 AM
SCRIPT: backup defined files/dirs to FTP-server markus1982 Linux - Software 0 05-25-2003 07:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration