LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2014, 04:09 PM   #1
khalilfreemind
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
can't ssh from my host windows 7 to my guest centos on vm


I can ping on 8.8.8.8 but I can't ssh or update my centos installed on vm 9
 
Old 09-24-2014, 04:14 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Is your VM set to NAT or bridged? What's the VM's IP and DNS? Is the sshd server running with the necessary firewall ports opened up? Where you trying to ssh to/from?
 
1 members found this post helpful.
Old 09-24-2014, 04:22 PM   #3
khalilfreemind
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Is your VM set to NAT or bridged? What's the VM's IP and DNS? Is the sshd server running with the necessary firewall ports opened up? Where you trying to ssh to/from?
my vm set to bridged my guest ip is 192.168.1.110 and dns 8.8.8.8 sshd is running when I use dhcp it works but it doesn't when I use static ip , my gateway is 192.168.1.1
 
Old 09-24-2014, 04:25 PM   #4
khalilfreemind
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
my vm set to bridged my vm's adress is 192.168.1.110 dns 8.8.8.8 gateway 192.168.1.1 sshd is on when I use dhcp I can ssh and browse to google but when I use static ip it doesn't work
 
Old 09-24-2014, 04:27 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
When you use a static IP and things aren't working, what is the output of ifconfig and what are the contents of /etc/resolv.conf
 
1 members found this post helpful.
Old 09-24-2014, 04:39 PM   #6
khalilfreemind
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
I know something is wrong but I can't figur it coz I can ping on 8.8.8.8 but I can't brows on google or ssh from my host windows 7
 
Old 09-24-2014, 05:00 PM   #7
khalilfreemind
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
thanks a lot suicidaleggroll for your help I found the problem it was my antivirus avast who was blocking me
 
Old 09-24-2014, 05:04 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Glad you got it sorted out.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping size of VM file down - QEMU/KVM guest running Centos 6, inside Centos 6 host rylan76 Linux - Virtualization and Cloud 2 01-24-2013 04:22 PM
Centos 6.3 host+guest: try scp to guest: scp cmd not found. ssh ok chrism01 Linux - Virtualization and Cloud 3 08-24-2012 02:52 AM
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 01:51 PM
[SOLVED] Cannot ssh guest OS from host konsolelover Linux - Newbie 10 09-27-2011 09:13 AM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 05:20 AM


All times are GMT -5. The time now is 04:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration