Operating System - Linux
1832493 Members
5755 Online
110043 Solutions
New Discussion

problem with sshd on RH 7.1

 
K.C. Chan
Trusted Contributor

problem with sshd on RH 7.1

Hi all, my sshd version is openssh-server-2.5.2p2-5, but sometime it's rejecting ssh sesssion. ipchains and iptables are turned off. When I telnet to the host with port 22, there is no response and sometime there's a response. Could some help. Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
7 REPLIES 7
Bernie Vande Griend
Respected Contributor

Re: problem with sshd on RH 7.1

I'm assuming that the times you can connect and times you can't connect that for both you are connecting to the same userid and coming from the same IP.
In that case if you confirm that sshd is continually running and see no errors in /var/log/messages, then I would suspect a network issue. You could also try the "-v" option with ssh as you connect to see if it gives you more information. Post it here and it may help us.
If you try telnet connections or ftp, do you experience time-outs? Try using ping to determine that the times are consistent and traceroute to make sure the route is what you think it should be.
Ye who thinks he has a lot to say, probably shouldn't.
Eugen Cocalea
Respected Contributor

Re: problem with sshd on RH 7.1

Hi,

I suppose you are sure that sshd is enabled and running. And does it reject all request or just some?

E.
To Live Is To Learn
K.C. Chan
Trusted Contributor

Re: problem with sshd on RH 7.1

I believe it's a network issue, bec I noticed when telneting to port 22 is successfull. Then I can ssh into the box. If not then, I can not. The remote server is using a DSL service. You think this is on their end? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
john madog
New Member

Re: problem with sshd on RH 7.1

hi ,

maybe a problem with dns ?
maybe you can try to connect
with ipaddress, like
ssh user@ and see if that
gives also problems ?



K.C. Chan
Trusted Contributor

Re: problem with sshd on RH 7.1

Here's a log of "ssh -v " , done at different remote site, but never-the-less it is experiencing the same problem. Attached is the log. It's funny, sometime I can ssh into and sometime I can, but then my session is kick off of the remote server. For this particular remote site, the other side is using a pick's firewall. I am not sure if this has anything to do with it. I hope someone can help me. Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
K.C. Chan
Trusted Contributor

Re: problem with sshd on RH 7.1

Would it matter a great deal if the remote site is suffering from packet lost? here's the log from ping:
--- 002mgr1 ping statistics ---
223 packets transmitted, 216 packets received, 3% packet loss
round-trip min/avg/max/mdev = 107.894/111.886/189.976/10.168 ms


--- 002mon0001 ping statistics ---
211 packets transmitted, 204 packets received, 3% packet loss
round-trip min/avg/max/mdev = 107.345/111.493/189.978/7.900 ms

--- 002mon0002 ping statistics ---
205 packets transmitted, 200 packets received, 2% packet loss
round-trip min/avg/max/mdev = 105.334/111.217/159.975/6.375 ms

thanks for the help guys.
Reputation of a thousand years can be determined by the conduct of an hour
Darrell Allen
Honored Contributor

Re: problem with sshd on RH 7.1

I believe you may have hit on it (dropped packets). I've had trouble with ssh sessions when packets are dropped and believe you will until the net is sound.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)