
Welcome to a step-by-step tutorial on how to access your Windows machine remotely using SSH. In this post, we’ll go through everything from setup to actual remote access using PuTTY, all on a Windows platform. Whether you are new to remote computing or looking to streamline your process, this guide should help you achieve that securely and efficiently.
Introduction to SSH and Its Importance
SSH, or Secure Shell, is a protocol used to securely access and manage machines over an insecure network. For Windows users, integrating SSH can enhance security, especially for administrative tasks and remote machine management. Windows 10 has embraced this feature with an inbuilt client and server functionality known as the OpenSSH server.
Step 1: Enabling SSH on Windows
As of Windows 10, SSH can be added easily through Windows’ own features. Here's how to do it:
-
Open Settings: Hit the Windows key and type
Settingsor right-click on the start menu and selectSettings. -
Apps & Features: Navigate to
Apps -> Optional Features. - Manage Optional Features: Here, check if ‘OpenSSH Client’ and ‘OpenSSH Server’ are listed in the installed features. If not present:
- Click on
Add a feature. - Find ‘OpenSSH Server’ and ‘OpenSSH Client’ from the list.
- Click on each and hit the
Installbutton.
- Click on
-
Ensure both the client and server components are installed for full functionality.
Step 2: Configuring the Firewall
With SSH installed, the next step is configuring the firewall to allow SSH traffic. Here’s how you can set it up:
-
Press the Windows key and type
Firewall, then openWindows Defender Firewall. - Go to
Advanced Settingsand selectInbound Rules. - Click on
New Rule. SelectPortas the type of rule to create, then clickNext. - Specify TCP and set it to apply to port 22 (default for SSH traffic). Click
Next. - Choose
Allow the connectionand hitNext. Ensure that you select the profiles this rule applies to (Domain, Private, Public). - Name your rule (e.g., SSH Port 22) and finish by clicking
Create. -
It’s crucial to only allow trusted applications through the firewall to maintain security.
Step 3: Using PuTTY for Remote Access
PuTTY is a popular and free SSH client for Windows. Here is how to use it:
- Download and Install PuTTY: Download PuTTY from here. Install it by following the setup instructions.
- Find Your IP Address:
- Open Command Prompt by typing
cmdin the start menu. - Type
ipconfigto list your network configuration. Look for 'IPv4 Address' under your active network adapter.
- Open Command Prompt by typing
- Setting Up PuTTY:
- Open PuTTY.
- In the ‘Host Name (or IP address)’ field, put your IP address found earlier.
- Make sure the ‘Port’ is set to 22 and connection type is ‘SSH’.
-
Connect:
You can save these settings in PuTTY with a session name for quicker setups in the future.- Click
Opento start the SSH session. - If it's the first connection to this host, you'll receive a security alert regarding the host key. Click
Acceptto continue. - Log in using your Windows username and password.
- Click
- File and Directory Access:
- Once logged in, you can use regular command-line commands like
lsto list directories andcdto change directories. Access and edit files using commands likenanoorvim.
- Once logged in, you can use regular command-line commands like
Conclusion
Setting up SSH on Windows is an access game-changer, facilitating secure and efficient remote administration. This walkthrough should help you implement SSH in your Windows environment and start using PuTTY for your remote connections.
Thank you for reading, and don't forget to like, subscribe, and share if this guide was helpful. Stay tuned for more tech tips and tutorials!
Happy computing!

Experienced DevOps Engineer proficient in Python, Docker, Kubernetes, CI/CD, and cloud technologies. Specialized in automating processes and building scalable infrastructure for seamless development and deployment.


