PuTTy is a renowned open-source terminal emulator and SSH client, catering to users across Windows, Linux, and macOS platforms. For those aiming to install PuTTy SSH Client on Ubuntu 22.04 Jammy Jellyfish or its older stable release of Ubuntu 20.04 Focal Fossa, this introduction sheds light on its core functionalities and advantages.
Key Features of PuTTy:
- Multiple Protocol Support: PuTTy seamlessly handles various protocols, including SSH, Telnet, Rlogin, and serial connections.
- High Customizability: Users can tailor the terminal’s appearance, adjusting elements like color schemes, font sizes, and window dimensions.
- Efficient Session Management: With the ability to save and load sessions, managing multiple connections becomes a breeze.
- X11 Forwarding Capability: PuTTy’s support for X11 forwarding allows users to execute graphical applications on remote servers and display them locally.
- Tool Integration: Integration capabilities with tools like WinSCP enhance PuTTy’s functionality, offering a comprehensive remote access and file transfer solution.
With its versatile and user-focused features, PuTTy has become a vital tool for system administrators and developers. Moving forward, this guide will offer a comprehensive step-by-step process to install PuTTy on Ubuntu, ensuring you have a powerful terminal emulator and SSH client.
Table of Contents
Update Ubuntu Before PuTTy Installation
Before proceeding, ensure your system is up-to-date by executing the following terminal command:
sudo apt update && sudo apt upgrade
Install PuTTY on Ubuntu 22.04 or 20.04
Use the terminal command below to install the software. Note that Ubuntu’s default repository already includes the software, simplifying the installation process.
sudo apt install putty putty-tools
To confirm the successful installation of PuTTy, you can verify its version using the following steps.
Launch PuTTY on Ubuntu 22.04 or 20.04
There are two ways to launch the PuTTy user interface, one of which is through the command line terminal. To do this, you can enter the following command in your terminal:
The other method for launching PuTTy is through the graphical user interface by clicking on the PuTTy icon in your application launcher:
Activities > Show Applications > PuTTY SSH Client.
Tips on Getting Started with PuTTy SSH Client on Ubuntu 22.04 or 20.04
General Tips with PuTTY on Ubuntu
- SSH Key Pairs: Ensure you have the required SSH key pairs before connecting to a remote server. These are essential for secure connections. If you don’t have them already, you can generate them using the command:
- Save Sessions: Save the session once you’ve set up your connection parameters. This will prevent you from re-entering details each time you launch PuTTY.
- Ping Before Connect: Before initiating an SSH connection, it’s a good practice to ping the target server. Use the following:
Customizations with PuTTY on Ubuntu
- Change Font and Size: Adjust font size and style by adjusting your PuTTY session readability. Navigate to
Appearanceand select the desired font and size.
- Color Schemes: If you’re not a fan of the default colors, you can customize your color scheme. Go to
Coloursand adjust as desired.
- Window Behavior: Under
Behaviour, you can decide how the window should behave – such as keeping it always on top.
- Cursor Appearance: Set your cursor to block, underline, or blinking via
Other Tips with PuTTY on Ubuntu
- Log Session: If you need a record of your activities during the session, you can log it. Head to
Loggingand choose the desired logging method.
- Port Forwarding: PuTTY allows local and remote port forwarding. This can be especially useful when setting up tunneling. Navigate to
Tunnelsto set this up.
- Keep Alive: To prevent timeouts set an interval for keep-alive data packets. Go to
Connectionand set your desired interval for “Seconds between keepalives”.
- SCP with PuTTY: Although PuTTY primarily functions as an SSH client, you can also use it for secure file transfers with SCP. Use
pscpfrom the command line for this:
pscp local_file.txt user@remote_host:/path/on/remote/host/
- Key Agent with PuTTY: Use
pageant, PuTTY’s SSH authentication agent, to manage your SSH keys and allow password-less logins.
While PuTTY is incredibly versatile and powerful, the key to mastering it lies in practice and exploration. As you get more familiar with its features, you’ll discover ways to streamline your work and enhance your SSH sessions.
PuTTy Terminal Commands Examples on Ubuntu 22.04 or 20.04
PuTTY in a Linux command terminal is a great way to access remote servers and perform various tasks. In this section, we’ll explore some of the most common commands you might use with PuTTY, including the secure copy client (SCP), utilizing SFTP to manage remote server files securely, and generating SSH RSA and DSA keys.
Connect to a remote server:
The basic command to connect to a remote server using PuTTY is:
Where [user@] is the username you want to use to connect to the remote server, and hostname is the hostname or IP address of the remote server.
Using the username root, this command will connect to the remote server at IP address 192.168.1.100.
Transfer files securely with PuTTY SCP
The secure copy client (SCP) in PuTTY lets you transfer files between your local machine and a remote server. SCP uses SFTP (SSH File Transfer Protocol) to ensure the secure transfer of your data.
The basic command to transfer a file from your local machine to a remote server using SCP is:
scp local_file user@host:remote_file
Where local_file is the path to the file on your local machine, user@host is the username and hostname of the remote server, and remote_file is the path to the file on the remote server.
scp /home/user/file.txt firstname.lastname@example.org:/root/file.txt
This command will transfer the file /home/user/file.txt from your local machine to the remote server at IP address 192.168.1.100, placing it in the /root directory on the remote server.
This will launch the PuTTY Key Generator, where you can generate RSA or DSA keys. Select the type of key you want to generate and follow the on-screen instructions to generate your key.
Additional PuTTY SSH Client Commands with Ubuntu 22.04 or 20.04
Remove PuTTY SSH Client From Ubuntu 22.04 or 20.04
If you want to remove PuTTY from your system, use the following terminal command:
sudo apt remove putty putty-tools
In conclusion, installing PuTTy on Ubuntu is a simple process that provides a powerful and versatile SSH client. Whether you need to connect to remote servers, transfer files securely, or generate RSA and DSA keys, PuTTy has you covered. With its comprehensive features and customization options, PuTTy is an excellent choice for anyone managing remote servers on Ubuntu.