S
S
Sergey Semenko2016-03-28 21:52:17
linux
Sergey Semenko, 2016-03-28 21:52:17

virtual box. How to configure access to the SSH server running on the guest OS?

From what I found on the Internet, it turned out to configure access only from the host. and I need to make it possible to connect to an SSH server from a phone on the local network. Do not tell me how to do it?
UPD#1
Current settings:
33f35cf3d9a34b8b9daac9ffd9629b5d.pngc6eb8037123a43d2b9e1ec3dca6f1021.png5659f801c57c4b0fb034feaf563cbd34.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
jacob1237, 2016-03-28
@abler98

You can simply forward port 22 from the virtual machine to localhost (google virtualbox port forwarding). After such manipulations, you will be able to connect to the SSH server using the IP address of your real computer, but the connection will be transferred to the virtual machine.
You can peek here: stackoverflow.com/questions/9537751/virtualbox-por...
Your case is "Host -> Guest"

P
Pan Propan, 2016-03-28
@mgis

configure the network in bridge mode, register statics and connect.

S
Saboteur, 2016-03-29
@saboteur_kiev

Switch the network card to NAT mode
Forward port 22 to the guest machine through "Port Forwarding"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question