Skip to main content

How to SSH into a Linux VM from Windows PowerShell

HardReset.InfoDecember 16, 20255 min39 views
1 connections·2 entities in this video→

Verifying SSH Service Status

  • πŸ’‘ Check SSH service status by running sudo systemctl status ssh in the Linux VM's terminal.
  • βœ… Confirm that the SSH service is active and running before proceeding.

Identifying the Linux VM's IP Address

  • πŸ“Œ To connect via SSH, you need the VM's username and IP address.
  • πŸ” The initial IP address shown is 10.0.2.15.

Initial SSH Connection Attempt and Error

  • ⚠️ Attempting to SSH from Windows PowerShell using ssh username@IP_address will likely result in a "Connection timed out" error if the network adapter is not configured correctly.
  • ⏳ The default SSH port is 22.

Configuring the Network Adapter for SSH

  • πŸ”Œ Power off the virtual machine completely.
  • βš™οΈ Navigate to the VM's settings, then the network section.
  • πŸŒ‰ Change the network adapter from the default to Bridged Adapter.
  • πŸ‘ Save the changes by pressing OK.

Establishing a Successful SSH Connection

  • πŸš€ Restart the virtual machine after changing the network settings.
  • πŸ”„ Once the VM has loaded, log in and open the terminal again.
  • πŸ’‘ The IP address will likely change; run ip a to find the new IP address (e.g., 192.168.88.148).
  • πŸ’» Execute the SSH command again: ssh username@new_IP_address.
  • πŸ”‘ Enter your password when prompted.
  • 🀝 If prompted for a fingerprint, type yes to continue.
  • 🎯 You can now successfully execute Linux commands remotely from PowerShell.
Knowledge graph2 entities Β· 1 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
2 entities
Chapters2 moments

Key Moments

Transcript19 segments

Full Transcript

Topics10 themes

What’s Discussed

SSHLinux VMWindows PowerShellVirtualBoxNetwork AdapterBridged AdapterIP AddressConnection TimeoutSystemctl StatusRemote Commands
Smart Objects2 Β· 1 links
ConceptsΒ· 2