LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2013, 12:48 PM   #1
monag
LQ Newbie
 
Registered: Jun 2011
Posts: 21

Rep: Reputation: Disabled
Other machine CANNOT SSH into it but the machine CAN ssh into other machines.


Hello,
I installed the fedora liveCD after booting it of a USB drive.
However I had some issues with ssh. I could ssh to any other machine in network from that machine but could not SSH into it from other machines.
I noticed the services option was absent from the admin menu. I installed it via the system-config-services rpm. But yet was unable to SSH into it.
I ensured that the sshd daemon was running via the chkconfig sshd on command.

There is something funny in this installation. I noticed that the ifcfg-eth0 file was mising from the /etc/sysconfig/network-script folder. So I copied over this file from another machine , made appropriate changes to the file w.r.t mac address and IP address. BUt yet am not able to ssh into it.
I just get a message "no route to host".
I can ping into this machine from any other machine but cannot ssh into it.
I am wondering why the ifcfg-eth0 did not get generated duing the installation process.

I have been struggling on this for the past 3 days. Would apprecaite if someone can let me know what I should do to resolve this issue.

Regards
 
Old 05-21-2013, 02:08 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
if you are running Fedora 16 or newer, as you should be if you are running Fedora, then you need to do a few things.

1. set SELinux to passive.

2. Verify that iptables is properly configured to allow port 22 access via your LAN, or as this is a laptop you can open port 22 to all IP ranges.

Those two features are PROTECTING your system as designed. This is a good thing.
 
Old 05-22-2013, 12:03 AM   #3
monag
LQ Newbie
 
Registered: Jun 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks very much. Your suggestions helped me. I made a change in iptables to accept 22 and it worked. Thanks for your time and valuable suggestion. Have a great day.
 
Old 05-22-2013, 01:20 AM   #4
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Rep: Reputation: 5
Awesome, good to hear you got it fixed! I was also going to reply that it could be a problem with iptables blocking port 22, but I wouldn't have thought about setting SELinux to passive. Was this also something you applied in the fix?
 
Old 05-22-2013, 07:26 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by monag View Post
Thanks very much. Your suggestions helped me. I made a change in iptables to accept 22 and it worked. Thanks for your time and valuable suggestion. Have a great day.
very welcome. good to hear it.
 
  


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
how to access a windows machine GUI from a linux machine using ssh obarhleam Linux - Newbie 6 07-11-2012 07:46 AM
[SOLVED] How can I ssh/scp into a remote's machine local machine? venom4u31 Linux - Newbie 6 11-05-2011 01:36 PM
not able to ping a machine but can do ssh to machine , wanna run vnc client amolgupta Linux - Software 4 07-28-2009 05:17 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 02:47 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 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