To log in to PuTTY using an IP address, open the PuTTY application, enter the IP address of the remote server in the Host Name (or IP address) field, and ensure the connection type is set to SSH. After clicking Open, a terminal window will prompt you for your username and password for authentication.
Before you begin
Before starting, you will need the following information:
- The server's IP address: This is the numerical address of the remote computer you want to connect to.
- The SSH port: This is usually
22by default. If your server's administrator has changed it, you will need the new port number. - Your username: The account name for the remote server. For Linux servers, common usernames include
rootoradmin, but your administrator may have provided a different one. - Your password: The password for your account on the remote server.
Step 1: Launch PuTTY
- Open the PuTTY application on your Windows computer.
- If you have a desktop shortcut, double-click it. Otherwise, search for "PuTTY" in the Start menu and open the program.
Step 2: Configure the connection
The PuTTY configuration window will appear. Follow these steps to set up your connection:
- Navigate to the Session section on the left-side panel.
- In the Host Name (or IP address) field, type or paste the IP address of the remote server.
- Confirm that the Port field is set to
22, or enter the custom port number if applicable. - Ensure that SSH is selected under the Connection type radio buttons.
Step 3: Connect to the server
- Click the Open button at the bottom of the PuTTY configuration window.
- A terminal window will open. The very first time you connect to a new server, you may see a "PuTTY Security Alert".
- This alert warns that the server's key is not cached on your computer.
- Verify that the IP address in the alert is correct and click Accept to continue. This caches the host key so you won't be prompted again.
Step 4: Enter your credentials
- A command-line prompt will appear with the message
login as:. Type your username for the remote server and press Enter. - The next line will ask for your password. Type your password and press Enter.
- Note: For security reasons, the characters will not appear on the screen as you type the password.
- To paste a copied password, right-click in the terminal window and press Enter.
Step 5: Start your session
If the username and password are correct, you will be successfully logged in and will see the command prompt for the remote server. You can now execute commands on the server remotely.
Optional: Save your session for future use
To avoid entering the IP address and port every time, you can save your session settings.
- In the PuTTY configuration window, after entering the IP address and port, navigate back to the Session screen.
- In the Saved Sessions field, enter a descriptive name for your session (e.g., "My Web Server").
- Click the Save button.
- To load this session in the future, simply select its name from the list and click Load, then Open.
Enjoyed this article? Share it with a friend.