Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Im using Kubuntu 13 as host and Xubuntu 12 as guest. In VM network options I have NAT selected, and port forwarding options like 127.0.0.1:23 => 10.0.2.15:22. 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

1 Answer 1

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.

References:

  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

 
discard

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.