Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

On a virtual debian machine in VIRTUALBOX I type: ssh -R 2222:localhost:22 andrea@10.0.2.2, to make reverse tunneling and allow remote machine to see debian desktop. on the remote machine (ubuntu) I've: ssh_exchange_identification: connection closed by remote host and connect to 10.0.2.15 port 22: failed Can you help me please??

share|improve this question

migrated from stackoverflow.com Mar 18 '13 at 10:33

This question came from our site for professional and enthusiast programmers.

    
I've already modified my hosts.allow file adding the line: SSHD: ALL but nothing, ssh server still refuses to make my day a good day. – user1703524 Mar 18 '13 at 9:02
    
Is the "remote machine(ubuntu)" also running in VirtualBox? What's the host OS, what kind of networking have you configured for the VMs? – tink Mar 18 '13 at 18:50

This happens to me, too. I am running Ubuntu 16.04 Server and I save the machine state before quitting. When I start it back up, I often get this error message when trying to connect, but then after about 15–20 seconds everything is ok again. My guess is that it has something to do with saving the machine state and then, upon starting again, the machine's having to update itself with the current network configuration, time, etc. before allowing new, valid connections.

share|improve this answer

Your Answer

 
discard

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