Hello,
This post is to help others avoid the same problem I encountered. (I saw a similar post, but it was from 2010)
I wanted to forward port 22 into my guest VM, so I used the NAT setting, and then added a port forwarding rule for port 22 TCP on the host to port 22 on the guest.
It didn't work, and it was a headache trying to change different settings to hopefully fix it.
Then I remembered that on Linux, ports below 1000 require root privileges! Oops!
Changing to a port higher than 1000, for example 10022 on the host, worked just fine and I was able to connect to my guest VM.
To Forward Port 22 for SSH on Linux Hosts
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: To Forward Port 22 for SSH on Linux Hosts
And you registered just to give us your feedback. Kudos!
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.