October 28, 2009
How to Install Putty on OS X
Some people are very used to Putty and they miss it when they are on a Mac. Is there a version for OS X? No, so this post is for those people. This really isn’t an install per se, it’s actually called a port. Putty doesn’t work “naturally” on OS X, so you need to use MacPorts to ‘port’ it to your Mac. When utilizing MacPorts, you can find that there are thousands of programs you can run on your Mac that normally wouldn’t be available. The interfaces may feel or act a bit differently, but it’s better than not having them at all.
Here are the steps to get it geared up:
1) Install MacPorts – Download/instructions for MacPorts (Be sure to pick the correct file for your OS X version.)
2) Open the saved .dmg file to install MacPorts.
3) After installation of MacPorts is complete, there’s one more item to check. Make sure you have XCode installed on your computer. If you are running OS X 10.6, you should download and run XCode 3.2. You will have to be a member (which is free) of Apple Developer Connection to download the file. The reason you need developer tools is because you are actually compiling source code in order to get this working, as a developer does.
4. After installing XCode, open up Terminal and paste this command:
sudo port -v selfupdate
This updates your install of MacPorts. You should see the update take place. If you don’t, leave a comment here so we can help you out with the error. But everything should work fine if the steps above have been followed exactly.
5. All you have to do next is paste this command:
sudo port install putty
This should take a few minutes and work without a hitch.
6. Now to start using it, type this into Terminal and Putty will then pop right up into an X11 window:
7. To put a shortcut on the Desktop, run an additional command in the terminal:
cp /opt/local/bin/putty ~/Desktop/PuTTY
Additonal Install/Migration Instructions
If you have installed MacPorts prior to Snow Leopard, you have to run a few fixes to get Putty to work again properly.
1. Open Terminal
sudo port uninstall glib1; sudo port uninstall gtk1; sudo port install putty
3. Once done, all the necessary libraries should be updated and you should have a new Putty up and running.
When I first started to write this article, I was going to use Fink, however, it appears they dropped the package. So I opted for MacPorts which is the most recently updated and compatible. It all works – for now.
What this means:
Eventually, everyone who is accustomed to Putty will need to change directions indefinitely, so please take a look at Daniel’s post on Terminal in OS X. Until then, keep hacking and compiling if you really need to.