LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ssh from virtual machine to main host (https://www.linuxquestions.org/questions/linux-general-1/ssh-from-virtual-machine-to-main-host-869263/)

gangsta77 03-17-2011 03:47 PM

ssh from virtual machine to main host
 
ok how do you add a rule which allows a virtual machine to connect to ssh on the main fedora host?

so connecting from a virtual machine to the main fedora host installation? I think i have to use an iptables command but not really sure

romagnolo 03-17-2011 04:02 PM

What about using the host ip?

gangsta77 03-17-2011 07:57 PM

sorry i forgot to mention that it has to be a bash script command

i know how to ssh from terminal to terminal but i dont know the bashscript command

jlinkels 03-17-2011 08:13 PM

It depends on:
a. What Virtual Machine you are using
b. How your network adapter in the virtual guest is configured, NAT, Bridged...
c. If you have IP tables installed on your Fedora host

Normally, a system would let all SSH traffic in without more configuration. If you have IPtables running, it is still unusual to block SSH access.

jlinkels


All times are GMT -5. The time now is 07:50 AM.