LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2011, 03:47 PM   #1
gangsta77
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Rep: Reputation: 0
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
 
Old 03-17-2011, 04:02 PM   #2
romagnolo
Member
 
Registered: Jul 2009
Location: Montaletto
Distribution: Debian GNU/Linux
Posts: 107

Rep: Reputation: 5
What about using the host ip?
 
Old 03-17-2011, 07:57 PM   #3
gangsta77
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 03-17-2011, 08:13 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file sharing between a virtual machine and the host machine okok Linux - Networking 3 06-21-2013 12:42 AM
Boot virtual machine without host os karnac01 Linux - Virtualization and Cloud 2 01-23-2011 02:53 PM
Is there anyway for one Virtual Server to access the main host, or another Virtual Se abefroman Linux - Security 5 01-08-2010 08:06 PM
Virtual machine host which distro ???? DerekEwing Linux - Newbie 1 11-05-2009 11:18 AM
How to configure the serial port of my virtual machine with host machine. akram Linux - Newbie 4 07-31-2009 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration