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 PuTTY

Run this command to run PuTTY:


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 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #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
You might also like these
How to add Read More Read Less Button using JavaScript?JavaScriptRevisiting variable scope in JavaScriptJavaScriptWhat is PostgreSQL? How similar or different it is from SQL?PostgresIntroduction to Angular modules Part 1: NgModule metadataAngularColumn and Table Alias in PostgresPostgresSQL ALL OperatorSQL/MySQL