Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im using Kubuntu 13 as host and Xubuntu 12 as guest. In VM network options I have NAT selected, and port forwarding options like => I can access Internet from guest, but when Im trying to connect via SSH to guest I get connection refused. Recently I used this setup on Windows 7 with success - no idea why it cant work on Ubuntu. Kindly help! :)

share|improve this question
Can you try to forward a high port (greater than 1025)? – Eric Carvalho May 26 '13 at 22:09
@EricCarvalho Remmaped ssh to 2222 instead of 23 - and it worked! Can you explain? – Gill Bates May 27 '13 at 10:25
up vote 3 down vote accepted

Ports < 1024 are privileged, only root can bind to them. As VirtualBox runs under an unprivileged user (the user you logged in with) it simply can't open a privileged port.


  1. Why are ports below 1024 privileged?
  2. Is there a way for non-root processes to bind to “privileged” ports (<1024) on Linux?
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.