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 sshin 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_addresswill 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 ato 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
yesto 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