Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Coming from Windows, I used Putty a lot since it could store a list of hosts I often connect to, provide me with an easy to use double click and then spawn a terminal. Is there a preferred solution for OSX?

share|improve this question

closed as off-topic by MichaelT, Kilian Foth, gnat, Bart van Ingen Schenau, ratchet freak Sep 16 at 8:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – MichaelT, Kilian Foth, gnat, Bart van Ingen Schenau, ratchet freak
If this question can be reworded to fit the rules in the help center, please edit the question.

You might ask on apple.stackexchange.com. –  zneak Dec 21 '10 at 23:37

3 Answers 3

up vote 2 down vote accepted

If you have the keys set up already, you can create a config file in the ~/.ssh directory with contents similar to this:

Host myname1
  Hostname host1.example.com
  User host1_user

Host myname2
  Hostname host2.example.com
  User host2_user

Then from the command line you can just use:

ssh myname1
share|improve this answer

SSH Keys

SSH allows you to use a public / private key pair for a connection, negating the need for a password. Use your hosts file to remember ip addresses and opening a new connection is as easy as ssh user@host.

share|improve this answer
yea that's an option I've considered. I have my keys set up. I just didn't want to have to type/remember the host. –  SB01 Dec 21 '10 at 22:41
@SB01: It's good practice. ;) –  Josh K Dec 21 '10 at 22:45
hmm.. any way to at least get autocompletion? –  SB01 Dec 21 '10 at 23:31
@SB01: Memorization is all the autocomplete you'll need. –  Josh K Dec 22 '10 at 0:54

Use the ssh keys that @Josh K mentions. If you have trouble with the rest, just set-up aliases in your .bashrc file. Eg:

alias prod='ssh user@production.host.com'
alias qa='ssh user@testbox.host.com'

Then from the command line, type qa and you'll be magically logged into the testbox.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.