networking - SSH from Virtualbox Guest to DynDNS address -


i have windows 10 host manjaro installation guest on virtualbox. have set debian server on house ssh installed. have setup dyndns on debian's network can access remotely.

for example..

from address 12.34.56.78 ssh foo.dyndns.org:1234. port redirects me 192.168.1.5:22 debian machine , connection established. able windows 10 android , other device in 12.34.56.78 or 3g.

but..

when try this

$ ssh foo.dyndns.org:1234 

from manjaro guest in virtualbox following error:

ssh: not resolve hostname foo.dyndns.org:1234: name or service not known 

so did ifconfig , saw inet address 10.0.2.15. changed virtualbox's network adapter nat bridged can lan ip , got host's ip, 192.168.2.4. gave try , still didn't work.

also, if try connect vm server while i'm in same network

$ ssh user@192.168.2.5:22 

it works. in case virtualbox's network adapter nat.

this command works if try android (connectbot).

i can connect same way putty windows.

so questions are:

  • can done?

  • if so, how? (and why?)

  • can vbox guest lan ip that's not same host's?

is there more information should provide?

i have searched couple of days in here , on google , found solutions on how can ssh vm. no 1 (from saw) asked opposite.

checking manual page ssh reveals format of command-line options:

ssh [...] [-p port] [...] [user@]hostnamessh 

this describes, need change

ssh foo.dyndns.org:1234 

to

ssh -p 1234 foo.dyndns.org 

if domain resolves correctly ip address.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -