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: GlowingApple on Jun 01, '05 05:02:15PM

Does anyone know if there's a way to pass arguments to ssh via this method? For example, if I want to do port forwarding.

---
Jayson --When Microsoft asks you, "Where do you want to go today?" tell them "Apple."



[ Reply to This | # ]
10.4: Use Safari for SSH bookmarking
Authored by: mayo2ca on Jun 01, '05 08:24:26PM

You could just use the Terminal's "Connect to Server", which will let you setup servers as well as specify custom options for ssh. Then just command+shift+k, pick a server from list, connect. Sure, safari bookmark beats it (especially when you sync your bookmarks between machines), but the terminal's way gives you much more power.



[ Reply to This | # ]
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 | # ]