LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 30
Server Defined SSH Tunnels


Hi!

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?

THanks,

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

Rep: Reputation: 0
/etc/ssh_config

Hi,

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:

Code:
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.
 
  


Reply


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 05:08 AM
Creating a router out of SSH Tunnels. Technoslave Linux - Networking 1 10-04-2004 06:07 PM
SSH tunnels and VNC, yet again. Edaph Linux - Security 7 05-23-2004 09:55 AM
Automatic SSH Tunnels fearofcarpet Linux - Software 1 12-04-2003 11:36 PM
SCRIPT: backup defined files/dirs to FTP-server markus1982 Linux - Software 0 05-25-2003 06:06 AM


All times are GMT -5. The time now is 01:47 PM.

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