Red Hat Bugzilla – Bug 474200
activating ypbind breaks ssh
Last modified: 2008-12-03 06:57:43 EST
Description of problem: When ypbind is turned on, ssh in to the computer is impossible and ssh out of the computer is impossible with the default settings.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Turn on sshd service
2.Turn on ypbind
3.Try ssh'ing in or out of the computer
When ssh'ing out of computer, it takes 7 minutes and 35 seconds to connect to the outside computer, and then the connection is closed immediately after entering the password. If GSSAPIAuthentication is turned off in ssh_config, it takes 50 seconds to connect to the outside computer and the connection is made correctly after entering the password
When ssh'ing in to the computer, it takes 2 minutes to connect, but after the correct password is given, it immediately closes the connection. If GSSAPIAuthentication is turned off in sshd_config, it takes 1 minute and 50 seconds to connect, and after the correct password is given it immediately closes the connection.
Ssh'ing out should immediately connect to the outside computer (and it does when ypbind is turned off in this case). Ssh'ing in should give the login prompt immediately and allow access (and it does when ypbind is turned off).
This could be a ypbind or an openssh problem. The reason I believe it is a ypbind problem is that while the computer is hanging when ssh'ing out of the computer, every 25 seconds an error message appears that says "do_ypcall: clnt_call: RPC: Timed out". This same error message also appears when issuing the "yum -y update" command.
Please delete this error report. Modifying iptables fixed the problem.