Answer the question
In order to leave comments, you need to log in
How to connect via ssh to a virtual machine (Linux)?
Host and guest - Ubuntu.
I want to ssh into a guest. How to do it?
I followed this instruction, I get an error
ssh_exchange_identification: read: Connection reset by peer
- blog.teamtreehouse.com/set-up-a-linux-server-on-vi...Answer the question
In order to leave comments, you need to log in
A virtual machine is configured on ubutnu - another ubuntu - is that right?
Port forwarding is needed for external connection. So that when connecting to the main Ubuntu, the connection is forwarded to the virtual machine.
If you configured everything correctly, try to connect to 127.0.0.1 on the configured port (according to instructions 2222) and you will have to get to the VM.
If you do not need an external connection, but you just want to get from the main Ubuntu to the virtual one, then go to the virtual one, find out its ip and connect to this ip on port 22 directly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question