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

10.4: Use Safari for SSH bookmarking Web Browsers
Tiger only hintWith Tiger's Terminal, Apple fixed the issue that makes two windows open when opening a telnet:// URL. I also noticed that the ssh:// URL is also supported from Safari. So, you can create a folder in your Safari's bookmark bar that will contain all your favorites ssh:// and telnet:// URLs. You can also insert your username inside the URL:
ssh://myuser@myserver.mycompanie.com
Fast access to your favorite servers from Safari...
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[7,378 views]  

10.4: Use Safari for SSH bookmarking | 12 comments | Create New Account
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: kokaviel on Jun 01, '05 11:15:13AM

Unfortunately, this bypasses your .bash_profile, so if you have ssh-agent/keychain setup if doesn't do the authentication properly. bummer.



[ Reply to This | # ]
10.4: Use Safari for SSH bookmarking
Authored by: mankoff on Jun 01, '05 11:24:25AM

You should probably upgrade from the CLI-based ssh-agent to the SSHKeychain.app. It works great for me.

---
http://spacebit.dyndns.org



[ Reply to This | # ]
id_rsa works
Authored by: lullabud on Jun 01, '05 01:00:56PM

I don't use ssh with the keychain at all, just the standard id_rsa stuff, and that works fine for me. This is sweet. :) ssh bookmark + quicksilver's safari plugin = easy remote shell access.



[ Reply to This | # ]
id_rsa works
Authored by: jaysoffian on Jun 01, '05 08:42:45PM

That means that your private key is not password protected. So should someone break into your machine, they can easily login to any account you've copied your public key to. Even worse, they can look at your .ssh/known_hosts file to find a convenient list of all those accounts.

You really should passphrase protect your private key and then use ssh-agent. You'll have the same level of convenience, but quite a bit more security. And it's easy with the application mentioned in the previous comment (though personally, I've rolled my own solution and that's posted here as well as a series of three hints.)



[ Reply to This | # ]
10.4: Use Safari for SSH bookmarking
Authored by: thornrag on Jun 02, '05 09:52:07AM

Try using .profile instead.



[ Reply to This | # ]
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 | # ]
10.4: Use Safari for SSH bookmarking
Authored by: roballen on Jun 01, '05 06:17:23PM

Anyone know if it is possible to change the default terminal client to be something different? For example iterm.



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

If you install the RCDefaultApp preference pane, you can set the ssh URL to open iTerm.app instead of Terminal.app. The only problem is that iTerm doesn't appear to then handle the URL that's been passed to it (I'm actually not sure how Safari passes the URL along to Terminal.app either...).

So we're halfway there. To make things work with iTerm, you might want to submit an enhancement request to the author. Unfortunately I don't have time to take a look at it any more right now. Sorry. :-(



[ Reply to This | # ]
10.4: Use Safari for SSH bookmarking
Authored by: reconbot on Jun 02, '05 12:57:11PM
ssh actually handles the URL so from the command line you can
 ssh user@host 
Which is the same as.
 ssh -l user host 


[ Reply to This | # ]
10.4: Use Safari for SSH bookmarking
Authored by: httpd on Jun 03, '05 02:44:45PM

Cool tip! Fast and Easy.

(JellyfiSSH still has some advantages, with regular ssh bookmarks and bookmarks for ssh tunnels)



[ Reply to This | # ]