How to Access and Control a Linux Virtual Machine Using PuTTY @ProgrammingKnowledge
How to Access and Control a Linux Virtual Machine Using PuTTY  @ProgrammingKnowledge
Uploaded July 2026 | Updated September 2026, 2 weeks ago
# How to Access and Control a Linux Virtual Machine Using PuTTY

In this step-by-step tutorial, you’ll learn how to access and fully control a Linux virtual machine using **PuTTY** from Windows 11. PuTTY is a popular SSH client that allows you to securely connect to Linux systems running in VirtualBox, VMware, or cloud environments and manage them using the command line.

This guide is perfect for beginners learning Linux, system administrators managing servers, DevOps engineers working with remote systems, and students practicing Linux commands in a virtual environment.

---

## What You Will Learn

By the end of this tutorial, you will be able to:

* Connect to a Linux VM using PuTTY
* Run Linux commands remotely from Windows 11
* Manage files, users, and services on your VM
* Control your Linux system using SSH securely

---

## Step 1: Install PuTTY on Windows 11

1. Download PuTTY from the official website
2. Install the Windows 64-bit version
3. Open PuTTY after installation

PuTTY is a lightweight SSH client used to connect to Linux systems securely over a network.

---

## Step 2: Find Your Linux VM IP Address

On your Linux virtual machine, open the terminal and run:

```bash id="x8v9k1"
ip a
```

Look for an IP like:

* `192.168.x.x`
* `10.0.x.x`

This is the address you will use in PuTTY.

---

## Step 3: Enable SSH on Linux VM

Install and start the SSH service:

For Ubuntu/Debian:

```bash id="sshsetup1"
sudo apt update
sudo apt install openssh-server -y
sudo systemctl enable ssh
sudo systemctl start ssh
```

Check status:

```bash id="sshstatus1"
sudo systemctl status ssh
```

---

## Step 4: Configure VirtualBox / VMware Network

To allow PuTTY access:

* **Bridged Adapter (Best Option):** VM gets same network as host
* **NAT + Port Forwarding:** Forward port 22 to VM
* **Host-Only:** Works only between host and VM

👉 For beginners, Bridged Adapter is the easiest and most reliable.

---

## Step 5: Connect Using PuTTY

1. Open PuTTY
2. Enter Linux VM IP in **Host Name**
3. Set Port: `22`
4. Select **SSH**
5. Click **Open**

---

## Step 6: Login to Your Linux VM

A terminal window will appear:

* Enter your Linux username
* Enter password (hidden while typing)

If correct, you are now connected to your Linux VM.

---

## Step 7: Control Your Linux VM Using PuTTY

Once connected, you can fully manage your Linux system:

### System Control Commands

```bash id="syscmd1"
sudo reboot
sudo shutdown now
```

### File Management

```bash id="filecmd1"
ls
cd /home
mkdir test
nano file.txt
```

### System Updates

```bash id="update1"
sudo apt update && sudo apt upgrade -y
```

### Process Management

```bash id="proc1"
top
ps aux
```

---

## Step 8: Improve Security with SSH Keys (Optional)

Instead of passwords, you can use SSH keys:

* Generate key using PuTTYgen
* Add public key to `~/.ssh/authorized_keys`
* Login without password

This is widely used in production servers.

---

## Common Problems & Fixes

**Connection timed out**

* Check VM IP address
* Ensure SSH service is running
* Use Bridged networking

**Permission denied**

* Wrong username/password
* SSH key mismatch

**Port 22 not working**

```bash id="firewall1"
sudo ufw allow ssh
```

---

## Final Thoughts

Using PuTTY to access and control a Linux virtual machine gives you real-world experience in system administration and server management. Once connected, your VM behaves like a remote Linux server that you can fully control from Windows 11.

---

If you found this tutorial helpful, don’t forget to like, subscribe, and turn on notifications for more Linux, networking, virtualization, and DevOps tutorials.

#PuTTY #LinuxVM #SSH #Windows11 #LinuxTutorial #VirtualMachine #SystemAdministration #Networking #DevOps #CyberSecurity #Ubuntu #VirtualBox #VMware #RemoteAccess #LinuxCommands #ServerManagement #TechTutorial #ITTraining #OpenSSH #LearnLinux
How to Access and Control a Linux Virtual Machine Using PuTTYHow to Create, List, and Drop Databases & Collections in MongoDBHow to Install Linux Mint on VMware Workstation (Windows 11) (2026)How to Install Docker on Windows & Linux | Step-by-Step Guide for BeginnersTerraform Tutorial Full Course for Beginners (2026)How to Send Plain Text Response in Node.js HTTP Module | Simple Server Response TutorialHow to Install XAMPP on Mac | Install XAMPP on MacOSHow to Install Fedora Linux in VirtualBox on Windows 11 (2026)Flutter WillPopScope Tutorial — Create an Exit Confirmation Dialog BoxHow to Connect to AWS CLI Using AWS KeysHow to Install and Use PearAI on Windows 11 (Best Cursor Alternative)How to Install Claude Code on Windows 11 | How to Set Up Claude Code (2026)
ProgrammingKnowledge |

How to Access and Control a Linux Virtual Machine Using PuTTY

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER