LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-19-2011, 04:33 PM   #1
RichyAD
LQ Newbie
 
Registered: Sep 2008
Location: Porto, Portugal
Distribution: Fedora 9-16, Linux Mint
Posts: 28

Rep: Reputation: 0
Question ssh timing out after Fedora 13 to Fedora 14 upgrade


A few weeks ago I upgraded one of my laptop from Fedora 13 to Fedora 14 (using pre-upgrade). The upgrade went smoothly and no errors appeared. However ever since the upgrade ssh is not working anymore. I've tried various servers inside and outside the local network. I can't contact any of them. In all cases I get:
Code:
ssh: connect to host aaa.bbb.ccc port 22: Connection timed out
I've tried to get more info using the -vvv option form ssh, but it doesn't mean too much to me:
Code:
OpenSSH_5.5p1, OpenSSL 1.0.0d-fips 8 Feb 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to aaa.bbb.ccc [xxx.xxx.xxx.xxx] port 22.
debug1: connect to address xxx.xxx.xxx.xxx port 22: Connection timed out
ssh: connect to host aaa.bbb.ccc port 22: Connection timed out
Actions so far:
- checked internet connection. No problem there. Another laptop is working fine using the same connection and the same ethernet cable. That laptop is still using Fedora 13, since I didn't want to get stuck without ssh completely.
- checked "messages" log. No messages at the time of ssh connect attempt.
- checked "secure" log. No messages at the time of ssh connect attempt.
- checked the firewall settings. The settings are exactly the same as before the upgrade (when ssh was still working). Moreover, the settings are the same as the other laptop that is working.
- temporarely switched off the firewall. No difference.
- temporarely switched off selinux. No difference.

So it doesn't seem to be a firewall or selinux problem. And I know the connection is working, so it does not seem to be a routing problem either. What am I missing here?

System specs:
- Asus EEE PC (1 GB RAM, intel atom processor);
- Fully up-to-date Fedora 14 (kernel 2.6.35.13-91.fc14.i686)

Let me know what else you need and I'll post it.

Richard
 
Old 05-20-2011, 03:51 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i bet you did not remove orphan fedora 13 rpms ( ones that are NOT in 14 )

14 removed a few and replaced other programs with different ones


install yum-utility and run the remove orphans option
see
Code:
 man yum-utility
search yum for the correct spelling ( in case i misspelled it's name )
" yum search yum "
 
Old 05-20-2011, 06:57 PM   #3
RichyAD
LQ Newbie
 
Registered: Sep 2008
Location: Porto, Portugal
Distribution: Fedora 9-16, Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 0
Nope, didn't forget that. It was the first time I used preupgrade, so I dutifully followed the steps on wiki page (http://fedoraproject.org/wiki/PreUpgrade).

I did get some .rpmsave and .rpmnew files. The only ones of note maybe are sssd.conf and ldap.conf. But I checked them and I couldn't find anything wrong with them. Could these have anything to do with this?
 
Old 05-20-2011, 07:14 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
".rpmsave and .rpmnew files"
most likely not a problem
These just allow you to back out of settings changes or reset the new files with the values saved in the rpmsave file


check the new config files against and rpmsave back ups to see if there are different

one thing that might cause problems in the settings in files in the ~ folder (/home/YourUserName or /root )

for something like ssh ?
go through and reset everything .Something did not upgrade right .It happens , that is why i always did fresh installs with fedora .
 
Old 05-20-2011, 08:18 PM   #5
RichyAD
LQ Newbie
 
Registered: Sep 2008
Location: Porto, Portugal
Distribution: Fedora 9-16, Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 0
Already had a look at the .ssh folder and cleaned the knownhosts file.

But the problem seems to be system-wide. I've tried ssh from two used accounts and as root. All suffer the time-out. I've checked the /etc/ssh/sshconfig against my other Fedora 13 version and they're the same.

I think I can force a re-install of ssh from yum. Maybe that'll help ... I really don't want to go through a fresh install just to get ssh up and running. That feel so windows-like.
 
Old 05-20-2011, 11:07 PM   #6
Capitan Planeta
LQ Newbie
 
Registered: Sep 2007
Location: Uruguay
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Have you checked that the service is running?

Try (on the machine you are trying to access):

$ service sshd status

and see if it is.
 
Old 05-21-2011, 05:44 AM   #7
RichyAD
LQ Newbie
 
Registered: Sep 2008
Location: Porto, Portugal
Distribution: Fedora 9-16, Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 0
@Capitan Planeta

On this Fedora 14 laptop I don't have the ssh deamon (sshd) running. This is not necessary. I only want to use the ssh client (ssh) to connect to a server. And that's timing out.

Obviously on the servers that I'm trying to connect to the ssh deamon (sshd) needs to be running. Since I can connect to these servers from my other (Fedora 13) laptop, this is not an issue.

By the way, I'm administrator of one of the servers that I'm trying to use. I've checked the logs on that machine and there are no entries about my connect attempts. It is safe to assume that the connection on Fedora 14 laptop fails before it reaches the server. Hence the "time out" error.

@John VV

I'm going to try and force a reinstall of the ssh client later today. Let see what happens.
 
Old 05-21-2011, 08:10 AM   #8
RichyAD
LQ Newbie
 
Registered: Sep 2008
Location: Porto, Portugal
Distribution: Fedora 9-16, Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 0
The problem seems to have "solved" itself. But I have no clue what happened ...

I reinstalled (open)ssh, but I still got a connection time out.

It did occur to me (only now) to check where the connection was timing out. So I used traceroute and something interesting popped up. When tracing the route on the functioning (Fedora 13) laptop, I got:
Code:
> traceroute -T -p 22 aaa.bbb.ccc
traceroute to aaa.bbb.ccc (xxx.xxx.xxx.xxx), 30 hops max, 60 byte packets
 1  ddd.eee.fff (192.168.2.254)  0.182 ms  0.128 ms  0.197 ms
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)  31.995 ms  33.382 ms  41.693 ms
So the packet seems to reach the server. Using the same connection (i.e. same cable), the Fedora 14 laptop gave me:
Code:
> traceroute -T -p 22 aaa.bbb.ccc
traceroute to aaa.bbb.ccc (xxx.xxx.xxx.xxx), 30 hops max, 60 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
So the maximum number of hops was reached before getting to the server. In additon, there was no response from the first (local network) router/gateway. I checked the /etc/resolv.conf on both laptops and they were identical. Also I got the same result with and without firewall and selinux on.

Just out off curiosity I decided to hook up my mobile phone and check the route through my mobile internet connection. And what do you? The connection route reached the server!! I tried the ssh connection and it worked through the wireless mobile connection.

But the strangest thing of all: after I disconnected from the mobile connection, I plugged in the cable and tried traceroute and ssh again ... And now it works! I'm completely baffeled. Something must have been reset when I used the wireless connection. I just don't know what ...

I'm glad the connection now works, but I would prefer to understand the root of the problem. So if anybody has any clues, please let me know. It may help people with similar problems.
 
  


Reply

Tags
fedora 14, ssh, timeout



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
LXer: How To Upgrade From Fedora 13 To Fedora 14 (Desktop & Server) LXer Syndicated Linux News 0 11-03-2010 09:00 AM
LXer: How To Upgrade From Fedora 12 To Fedora 13 (Desktop & Server) LXer Syndicated Linux News 0 05-28-2010 03:30 PM
[SOLVED] Upgrade fedora 1 to fedora 8; problem with dual boot mounting partition. alan sherwood Linux - Newbie 6 05-19-2010 06:31 PM
Can't install Fedora 11 directly, or upgrade from Fedora 10. Anaconda won't detect HD sheepy Fedora - Installation 11 10-06-2009 08:11 AM
LXer: How To Upgrade From Fedora 10 To Fedora 11 (Desktop & Server) LXer Syndicated Linux News 0 06-15-2009 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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