SSometimes you may not need to use your Raspberry Pi directly, but rather remotely via another PC. Many programs make this very easy. One of the most popular programs is putty, and today we'll show you how to use it.
Putty allows remote connection to a Raspberry Pi and any device that can use Rocket SSH, Telnet, or RAW connections (TTY is Putty, probably short for teletypewriter, which is important in the history of Linux). The protocol we are going to use here is the SSH protocol, which stands for Secure SHell. The SSH protocol provides a terminal interface to your Raspberry Pi, and if you're familiar with Linux, you know that the terminal interface can do almost anything.
Putty's interface is quite simple. No flashy UI components, just straight to the point. On the left is an area that displays all the categories and subcategories available to the user. Depending on the category selected, the available options will appear on the right.
putty has several valuable components that can be used for different purposes. Knowing this will help you understand how much you can do with putty. Some of the components are:
This is the component that contains telnet, rlogin, raw socket and the SSH client. This component is used to access the device we want to connect to from the command line, similar to opening a terminal on your own system.
This is an SCP client used to securely copy files over the wire. You can also use SFTP to send files, which is a useful standard file transfer protocol.
This is a pure telnet client. Telnet is a protocol that allows users to create a two-way connection between two systems that can exchange messages through the terminal.
This is the main application window that contains the information needed to connect to another system. It also contains the list of saved logins and settings.
The window settings give you options regarding the appearance and behavior of the terminal window that is presented to you once the connection is established. You can configure the size, scrollability, colors, fonts, titles, and many other factors.
Other settings, including keyboard and connection settings, give users a variety of options regarding the type of connection that is made. You can add proxies, specify automatic usernames, and other fine details.
For putty to work on the Raspberry Pi, two things are required: first, SSH must be enabled on your Raspberry Pi, and second, you must know the IP address of your Raspberry Pi. Make sure the system you are using, putty and the Raspberry Pi, are connected to the same network. This is essential. For these initial setup requirements, you will need to access your Raspberry Pi operating system through a screen. Later you can use a headless (screenless) setup if you like.
Go to the Applications menu, enter the "Settings" category, and click "Raspberry Pi Settings" to enable SSH. Here, go to the "Interfaces" tab and under the "SSH" heading, click "Enable" and then click "OK."
get ip address
To find out the IP address, type the command:
Nome host -I
The first section of the result is your IP address, in this case 192.168.29.100.
The problem with the IP address is that it is dynamic. It is constantly changing, and the IP address it discovers in the above way is only temporary. If you need to log in to your Raspberry Pi more than once with putty, see Static IP in the next section.
Configure static IP address
To solve the dynamic IP address problem, let's set up a static IP address for the Raspberry Pi. Configuring the static IP address requires a few network components, namely the DNS IP address, the gateway IP address, and the selection of the static IP address.
Configuring the static IP address
For security, use the IP address that the Raspberry Pi uses at configuration time as the static IP address. If you use a different IP address of your choice, there is a chance that it will overlap with another device that is already connected to the system. To find the IP address, open a terminal and type:
Nome host -I
The first section of the output is the IP address used.
Find the IP address of the gateway
To find the IP address of the gateway, type:
ipr | grep-standard
The number after "default path" is the IP address of the gateway.
Find the DNS IP address
To find the DNS IP address, type:
The set of numbers next to "Name Server" with four sections is the DNS IP address.
Necessary information about static IP
Static IP Configuration
Finally, open another terminal and type:
sudo nano /etc/dhcpcd.conf
Use the arrow key to scroll to the bottom of the file and enter the text shown below:
interface [Interfaz]static ip_address=[IP Address]static routers=[Gatway IP Address]static domain_name_servers=[Static DNS Address]
replace here'Interfacecometh0if you want to use a wired connection orWLAN0if you plan to use a wireless one. next replacement'IP adress' with the IP you found in the first command, replace 'Gateway IP address' with what you found with the second command and finally replace 'Static DNS address' with the one you found with the third command.
Static IP address configured
Save the file by pressing Ctrl-X and then Y.
Lastly, reboot your Raspberry Pi to allow the static IP address configuration to take place. Forbidden:
To verify that the process worked, type the command:
Nome host -I
and verify that the IP address displayed is the same as the one you just configured.
Connect to your Raspberry Pi using putty
To use putty, open it and enter the IP address you just got from your Raspberry Pi or set it to a static IP address in the provided range and click "Open'. As simple as that.
When logging in for the first time, you will be asked to confirm to enter the system. Click "OK."
After that, you will be asked to enter the username and password. In most cases, the default user is used, i.e.Pi. You know the password because it was set during the initial setup of your Raspberry Pi.
You now have command line access to your Raspberry Pi and can use it just like you would your system directly.
putty is available in the repositories of all major Linux distributions.
Enter the following to install putty:
sudo apt install putty
sudo pacman -S Kitt
In Fedora, type:
sudo dnf install putty
For Windows, you can get the setup fileHere.
putty has been around for a while and is a proven SSH client. It works perfectly and it is a reliable software. Once you do the initial setup of a static IP address, using putty becomes easy and opens up new possibilities. The next time you need your Raspberry Pi, you won't need to go through the full setup with screen, keyboard, and mouse. Instead, plug in the power, wait a few seconds, and log in via putty. It's as simple as it sounds. We hope this article has been useful to you. Health!
How to connect Raspberry Pi through PuTTY? ›
- Download & install the PuTTy application.
- Enter the Pi's ip address in the Host Name Box on port 22.
- Select SSH as connection type.
- Click Open button.
- Accept the Server's key finger print.
PuTTY is a software application that you can run from your desktop or laptop computer to access the Raspberry Pi command-line interface. It uses SSH (secure shell) to open a terminal window on your computer, which you can use to send commands to the Raspberry Pi and receive data from it.How do I connect my device to PuTTY? ›
When you first open PuTTY, the Configuration window appears (default is a SSH connection). Change the Connection type to Raw then enter the IP address and Port# for the ICOM port to which you would like to connect. See ICOMCONFIG command for information about the ICOM ports. Click OK.How do I SSH into my Raspberry Pi? ›
SSH Into Raspberry Pi From Windows
In the PuTTY dialog, select SSH as the connection type, enter the Raspberry Pi's IP address or hostname in the Host Name (or IP address) box, then click Open. You can also click Save to save the connection details in PuTTY.
- Double-click the putty.exe file to bring up the PuTTY configuration window.
- In the PuTTY configuration window, enter the host name or public IP address of your server into the “Host Name (or IP address)” field, as well as into the “Saved Sessions” field.
PuTTY is a free, open source, terminal emulator, serial console, and network file transfer application that works with on both Windows and Linux host computers.Is PuTTY better than SSH? ›
PuTTY has long been the preferred choice for SSH on Windows. Whether controlling web servers, accessing Internet of Things devices or remotely administering a Linux PC, it's a lightweight, easy to use app. One of the reasons for PuTTY's endurance is its wide selection of features.Is PuTTY good for SSH? ›
It is the world's most popular free SSH client. It supports SSH, telnet, and raw socket connections with good terminal emulation. It supports public key authentication and Kerberos single-sign-on. It also includes command-line SFTP and SCP implementations.Is there a GUI for PuTTY? ›
Start putty do the following settings in putty. Select X11 and click on Enable X11 forwarding. Then go into the session tab and take the remote of your machine using the IP address, Check the below steps. Now you will be able to use the GUI tool using Putty.How to connect PuTTY with usb? ›
- Choose Connection type as Serial.
- In Serial line enter the USB Serial port path obtained above /dev/ttyACM<number> or /dev/ttyUSB<number> or /dev/pts/<number>.
- Enter Speed to 115200.
- Click Open.
How to use PuTTY for SSH? ›
- Launch the PuTTY SSH client, then enter your server's SSH IP and SSH Port. Click the Open button to proceed.
- A login as: message will pop-up and asks you to enter your SSH username. For VPS users, this is usually root. ...
- Type your SSH password and press Enter again.
On PuTTY, ensure that correct serial port has been set, and then press the Open button. This will display the terminal emulator window: You can now send commands to the prober. These commands need to be entered without error, and sent by pressing Control+J.How to enable SSH on boot Raspberry Pi? ›
By default, SSH is disabled on the Raspberry Pi. It is however very easy to enable it, both using the Desktop and via the terminal. To enable SSH via the Desktop, go to the start menu > Preferences > Raspberry Pi Configuration . Now click on Interfaces and click enable next to SSH and click OK .What does SSH stand for? ›
SSH, also known as Secure Shell or Secure Socket Shell, is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network. SSH also refers to the suite of utilities that implement the SSH protocol.What port is SSH on Raspberry Pi? ›
Windows users can SSH into Raspberry Pi using PuTTY. Start the tool and enter the IP address of your device. Make sure SSH is selected, and the port set to 22. Click Open to start a new session.What is raw PuTTY? ›
PuTTY is an open source software tool that provides a number of simple communication links (RAW, Telnet, SSSH, Serial, and others). It is available for free and there are a number of versions available for popular operating systems.How do I manually fill an IP address? ›
Under IP assignment, select Edit. Under Edit IP settings, select Automatic (DHCP) or Manual. Under Edit IP settings, choose Manual, then turn on IPv4. To specify an IP address, in the IP address, Subnet prefix length, and Gateway boxes, type the IP address settings.How do I manually connect to an IP address? ›
- Press the HOME or MENU button.
- Select Setup or Settings.
- Select Network.
- Select Network Setup.
- Depending on how the device is connected to your network, select either Wired or Wireless.
- Select Manual or Custom. ...
- Enter the IP information obtained from your computer.
Secure Shell (SSH) is a network protocol used to allow secure access to a UNIX terminal. PuTTY is the recommended application to use for SSH connections from a Windows operating system. PuTTY allows you to access your files and email stored on the engineering servers.Can I SSH without PuTTY? ›
If you're new to SSH, you'll probably want to use a graphical option like PuTTY. However, if you're experienced with command line activity, you'll find Cygwin's OpenSSH implantation works as it does on other platforms. Cygwin is a large installation package so you may prefer to install just OpenSSH.
What commands can I use in PuTTY? ›
- “ls -a” will show you all the files in a directory”.
- “ls -h” will show the files while showing their sizes as well.
- “ls -r” will recursively show the subdirectories of the directory.
- “ls -alh” will show you more details about the files contained in a folder.
SSH does more than enable remote login sessions, however, especially for security professionals and network engineers. SSH can secure pipelines using public key cryptography to enable any kind of network traffic -- but SSH is also an important cybersecurity tool, used both by security professionals and hackers.Why do people still use PuTTY? ›
PuTTY is an alternative to telnet clients. Its primary advantage is that SSH provides a secure, encrypted connection to the remote system. It's also small and self-contained and can be carried around on a floppy disk. This makes it ideal for accessing Sussex systems securely from other locations on the public Internet.What language is used in PuTTY? ›
PuTTY is written in C language and it is monolithic, it does not use dynamic link libraries, so if you download the appropriate version already compiled in 32 or 64 bits, it is ready to be executed.Is KiTTY better than PuTTY? ›
The KiTTY application is a fork of PuTTY, as such, it is coded on the same foundations of PuTTY. In simple words, KiTTY is a better version of PuTTY that not only has all the features that PuTTY has but offers many more.Is SSH safer than VPN? ›
However, while an SSH connection only works on an application level, a VPN connection encrypts and protects all your data. In other words, SSH tunneling will secure data exchanged between you and a remote server you have access to, while a VPN works to encrypt your entire network.Can I use Python on PuTTY? ›
Yes, you have to copy your python script to the remote server. Here is a link on how to copy files to a remote server using putty. If you are connecting through putty then your server should be (I think so) Unix/Linux. Exe files won't work there, but the Python should be installed by default.How do I run SuperPutty? ›
Run superputty.exe from the desktop shortcut. The SuperPutty options window will open. Enter the path to the putty.exe location in your Program Files folder and click OK. You can leave the pscp.exe and mintty.exe locations blank.What is the most popular GUI? ›
Microsoft Windows is one of the most common graphical OS. It is developed and marketed by Microsoft. Its common name is windows or win. The current version of Microsoft Windows is Windows 10.Can I SSH over USB? ›
SSH is enabled over USB only for all targets on Legato 16.10. 0+. By default the USB IP address is 192.168. 2.2.
How do I SSH into a USB? ›
- Enable the usb device under Devices->USB->USB Settings.
- Connect the Device.
- See the device pop up under Devices->USB and lsusb.
- An interface appears on ifconfig, and I can ssh into the device.
Click on the small icon in the upper left corner to access the Putty Menu, then click on Change Settings... Enter port number as the Source port and host:port as the Destination, then click Add.How do I send a byte in PuTTY? ›
By opening a connection and then using the keyboard to tell Putty to send the corresponding byte. 0x07 is Ctrl+G the BEL control-character in ASCII. Putty doesn't convert strings like 0x07 into binary, it would send that as four characters. Try holding down Ctrl while pressing G .Can I transfer files with PuTTY? ›
PuTTY pscp (or scp) provides a file transfer application for Secure Shell (SSH) to copy files either between two directories on the configuration node or between the configuration node and another host.How do I access a database in PuTTY? ›
- Source port: 1433.
- Destination port: 192.168. x.x:1433 or 10. x.x.x:1433 (replace this with the actual internal IP address of your DB server)
- Type: Local.
- Click "Add"
The easiest way to enable SSH on your Raspberry Pi without a monitor is to use the official Raspberry Pi Imager tool. Before you write Raspberry Pi OS to an SD card, this application allows you to enable SSH and set the username and password you want to use.Why can I not SSH into my Raspberry Pi? ›
If you can't establish an SSH connection to your Raspberry Pi, here are a couple of things you can do: Make sure that you have enabled SSH on your Raspberry Pi. Make sure that you're using the correct IP address. Make sure that you have the correct credentials.Why is my SSH not connecting? ›
Install an SSH tool such as OpenSSH on the server you want to connect to using the sudo apt install openssh-server command. If your firewall is blocking your SSH connection. Disable the firewall rules blocking your SSH connection by changing the destination port's settings to ACCEPT.Is SSH a VPN? ›
The fundamental distinction between the two technologies is that SSH connects to a specific machine, whereas VPN connects to a network. Each of these adds an extra layer of security when exploring the web. If you're searching for a business solution, a VPN offers the superior security and privacy option of the two.Is SSH faster than VPN? ›
SSH vs OpenVPN for Tunneling: As long as you only need one TCP port forwarded, SSH is a much faster choice, because it has less overhead.
What port uses SSH? ›
The default port for SSH client connections is 22; to change this default, enter a port number between 1024 and 32,767.Can I SSH to port 443? ›
Enabling SSH connections over HTTPS
If you are able to SSH into firstname.lastname@example.org over port 443, you can override your SSH settings to force any connection to GitHub.com to run through that server and port. You can test that this works by connecting once more to GitHub.com: $ ssh -T email@example.com > Hi USERNAME!
Port 139 is utilized by NetBIOS Session service. Enabling NetBIOS services provide access to shared resources like files and printers not only to your network computers but also to anyone across the internet. Therefore it is advisable to block port 139 in the Firewall.How to connect Raspberry Pi to laptop using PuTTY and VNC? ›
Now type sudo raspi-config and go to interfacing options and enable the VNC option. Now create a VNC server on the Pi by entering vncserver . Finally, open the VNC Viewer App and enter the IP address as shown in the PuTTY terminal and authenticate the server by entering the default username and password.How do I connect my RetroPie to PuTTY? ›
Step 5: Connecting to RetroPie
Open Putty and write your Raspberry Pi's IP Address. Click on “Open”. Log into RetroPie. Congratulations, you've just conected your PC to you Raspberry Pi's RetroPie installation and that's it for this tutorial.
- Windows users, download and install PuTTY. ...
- Via PuTTY enter the hostname as raspberrypi. ...
- Enter your username and password when prompted. ...
- Update your software repositories and then download the latest updates for your Raspberry Pi. ...
- Install Pi-hole using this one line installation script.
- In the PuTTY Configuration window, enter the following values: In the Host Name field, enter the Internet Protocol (IP) address of your Cloud Server. Ensure that the connection type is set to SSH. (Optional) In the Saved Sessions field, assign a name for this connection. ...
- Click Open.
Older Raspberry Pi's sadly lack the ability to boot from the USB. If you are using the Raspberry Pi 4 or newer, then you need to update the bootloader to boot from the USB instead of the MicroSD card.How do I remotely access my Raspberry Pi from my computer? ›
- Through VNC.
- Through SSH.
- Through Xrdp.
- Through Teamviewer.
- Through NoMachine.
- Type vncserver and press Enter.
- If it asks for a password, give it a password, hit Enter, and retype the password to verify.
- When asked to enter a view-only password select y or n and proceed.
- It should read New 'X' desktop is <ServerName> : <Port>
Why is my PuTTY not connecting? ›
To work around this issue, go into the PuTTY configuration and select Connection->SSH->Auth->GSSAPI. Uncheck the box labeled "Attempt GSSAPI authentication." Either save this into the Default session profile or into any individual server profiles you have set up.Why SSH Cannot connect to PuTTY? ›
It's possible that although Apache is up and running, your SSH port (which is what PuTTY is looking to access) is not available. You'll want to ensure that port 22, or your preferred SSH port if you're not using the standard port, is open in your firewall and that the SSH service is running.Does Pi-hole cost money? ›
Pi-hole is free, but powered by your support
There are many reoccurring costs involved with maintaining free, open-source, and privacy respecting software; expenses which our volunteer developers pitch in to cover out-of-pocket.
The great Raspberry Pi shortage started at the beginning of 2021, due to a mismatch of supply and demand. Since then, eager makers have been forced to turn to the second-hand market, or exorbitantly overpriced examples from resellers on Amazon.Can Pi-hole be a VPN? ›
Via this VPN, you can: use the DNS server and full filtering capabilities of your Pi-hole from everywhere around the globe. access your admin interface remotely. encrypt your Internet traffic.What is the difference between PuTTY and SSH? ›
Secure Shell (SSH) is a network protocol used to allow secure access to a UNIX terminal. PuTTY is the recommended application to use for SSH connections from a Windows operating system. PuTTY allows you to access your files and email stored on the engineering servers.Can I use SSH with PuTTY? ›
SSH, or Secure Shell, is a secure protocol for connecting to a remote server. To establish an SSH connection, you will need an SSH client app like PuTTY.How do I setup a PuTTY server? ›
- 1 Download the installer. Visit the PuTTY for Windows external site and click the appropriate installer. ...
- 2 Install the application. Double-click on the . ...
- 3 Start PuTTY. Select PuTTY from your Programs menu. ...
- 4 Configure PuTTY. ...
- 5 Log in to CUNIX.