PuTTY is an open source SSH and telnet client, developed originally by Simon Tatham for the Windows platform. You can save connections and preferences, making it quick and easy to connect to your servers. For Mac OS X I haven’t really been able to find something close. So let’s install a mac port of PuTTY.
1) If you already have XCode installed and have at least opened it 1 time, then ignore this step. If not, install XCode using the app store. Run and accept any EULA statements. You can now close XCode if you want.
2) Go to the macports.org website, download and install the version that matches your OS version. For me, it was El Capitan.
4) After installing macports and Quartz, we can install putty. Open your Applications > Utilities > Terminal program, and use the command “sudo port install putty”.
You now have installed the mac port of PuTTY on your Mac OS X! You can either run the command “putty” in terminal to launch the program, or create a shortcut on your desktop by typing in “cp /opt/local/bin/putty ~/Desktop/PuTTY”. ENJOY!
Q) Error: port selfupdate failed: Error installing new MacPorts base: shell command failed
A) Preferences -> Downloads -> Components -> Install Command Line Tools
Q) Error: Gtk-WARNING **: cannot open display:
A) Make sure you are using XQuartz as your X11 Emulator. Then either restart Mac, or log out and back in.