Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use Safari for SSH bookmarking' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Safari for SSH bookmarking
Authored by: jaysoffian on Jun 01, '05 08:46:57PM
Assuming you always use the same port-forwarding (or at least, a common set), you could setup the port-forwarding in your .ssh/config file. If you have different sets of forwards you like to use, just add multiple configs. e.g.:

Host foo
   HostName realhostname.domain.com
   LocalForward 1234:127.0.0.1:5678
   LocalForward 5678:1.2.3.4:5678
Host bar
   Hostname realhostname.domain.com
   LocalForward 8000:127.0.0.1:80
Then if you ssh://foo it will connect you to realhostname.domain.com with the first set of forwards. If you ss://bar, it'll get you to the second set. etc.

[ Reply to This | # ]