To Forward Port 22 for SSH on Linux Hosts
Posted: 14. Jul 2017, 15:30
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.
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.