Yogesh Chauhan's Blog

How to install PuTTY on a MacOS?

in Miscellaneous on January 11, 2022

What is PuTTY?

PuTTY is a open-source SSH client it is highly configurable.

PuTTY makes it easier to connect to a remote server. One you’re connected to the remote server, you can transfer files over the network. PuTTY helps you create a very secure connection when you want to connect to a remote server and transfer files.

Although PuTTY is considered an SSH client, it is used for many other protocols such as SCP, Raw Socket Connection, Telnet, Serial port etc. It is also used for user control over SSH encryption key and protocol versions.

PuTTY on Mac: Prerequisites

You need to install these 3 applications before installing PuTTY on Mac:

  • Command Line Tools
  • Xcode
  • MacPorts

This post can help you install Command Line Tools:

How to Install Xcode Command Line Tools on MacOS?

Install Xcode Command Line Tools

Run this command on terminal:

xcode-select --install

You’ll see a few system prompts regarding the xcode installation. After that, it’ll installed.

Install MacPorts

Use this MacPorts download page to download and install it.

PuTTY Installation Steps

Licence Agreement

Before using the xcode, you need to accept the licence agreement.

Run this command on terminal:

sudo xcodebuild –license

The licence will be displayed on the terminal afterwards.

To view the licence page by page you might need to press space key a few times. When you’re at the end of the licence agreement, you need to write “agree” and press enter/return.

Update MacPorts

Just to make sure your MacPorts are up to date, run this command:

sudo port –v self-update

Install PuTTY

Run this command to install PuTTY:

sudo port install putty

You’ll be shown the packages that’ll be installed. Type Y to confirm.

You might need to enter your password multiple times in this process.

Optional: Python Change

To make this the default Python or Python 3 (i.e., the version run by the ‘python’ or ‘python3’ commands), run one or both of:

sudo port select --set python python39
sudo port select --set python3 python39


Run this command to run PuTTY:


Create a desktop shortcut for PuTTY

Run this command to create a desktop shortcut so that you don’t need to run the putty command each time:

cp /opt/local/bin/putty ~/Desktop/PuTTY

Add Windowing System using XQuartz

The XQuartz is an open-source software that provides Window System for bitmap displays that runs on Unix-like OS such as macOS.

Download it from their website here: xquartz.org and install it.

Now, when you run PuTTY, it’ll open it in a window!

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 How to add Read More Read Less Button using JavaScript? #3 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface #Jan 14 How to display a student’s individual transcript in Colleague? #Jan 11 How to install PuTTY on a MacOS?
You might also like these
How to create a new HTML element programmatically using JavaScript?HTMLHow to load a module with configuration in SCSS?SCSSHow to define constants in PHP?PHPAggregate Functions Examples in Postgres for BeginnersPostgresSome Useful Operators in The SQL WHERE ClauseSQL/MySQL5 Steps to Create a Line using Canvas Tag in HTML5HTML