At 15:06 18/09/01 -0500, you wrote: >Hi. > >I realize this seems like a question for the OpenSSH people but my mail >was returned unknown host. So I am hoping the good RedHat masterminds >out there can help me instead. Let�s try, then! >I have recently installed OpenSSH 2.9p2 on a Linux >Redhat 7.1 system. The client works well, and I had no trouble getting >it to run. However, I am having problems connecting to the server. If >I try to connect from a remote machine, I get several "connect : >Connection refused" errors, then inevitablly a "Secure connection to ... >refused". If I try to connect locally, however, I am successful. Do you use iptables or ipchains, i.e. any kind of NAT, in your machine?? >I have seen previous messages on similar problems but have not come across >any solutions. Debug info looks good (as far as I can tell), at least >in the server. > >Server: > /usr/sbin/sshd -d -d -d > debug1: Seeding random number generator > debug1: sshd version OpenSSH_2.9p2 > debug1: private host key: #0 type 0 RSA1 > debug3: No RSA1 key file /etc/ssh/ssh_host_rsa_key. > debug1: read PEM private key done: type RSA > debug1: private host key: #1 type 1 RSA > debug3: No RSA1 key file /etc/ssh/ssh_host_dsa_key. > debug1: read PEM private key done: type DSA > debug1: private host key: #2 type 2 DSA > debug1: Bind to port 22 on 0.0.0.0. > Server listening on 0.0.0.0 port 22. > Generating 768 bit RSA key. > RSA key generation complete. At first sight, this is ok. >Client: > ssh -v [host] >OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f >debug1: Reading configuration data /etc/ssh/ssh_config >debug1: Seeding random number generator >debug1: Rhosts Authentication disabled, originating port will not be >trusted. >debug1: restore_uid >debug1: ssh_connect: getuid 500 geteuid 0 anon 1 >debug1: Connecting to [host][###.###.###.###] port 22. >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: restore_uid >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: connect: Connection refused >debug1: restore_uid >debug1: Trying again... >debug1: Connecting to [HOST][###.###.###.###] port 22. >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: restore_uid >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: connect: Connection refused >debug1: restore_uid >debug1: Trying again... >debug1: Connecting to [host][###.###.###.###] port 22. >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: restore_uid >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: connect: Connection refused >debug1: restore_uid >debug1: Trying again... >debug1: Connecting to [host][###.###.###.###] port 22. >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: restore_uid >debug1: temporarily_use_uid: 500/500 (e=0) >debug1: connect: Connection refused >debug1: restore_uid >Secure connection to [host]refused. It also seems that your client is ok. >Could something be blocking port 22 from incoming connections? As I >said, I can connect locally. Again, do you use NAT? > Another note. I can't connect with telnet >remotely either (not that I would) but that is a different port..... ?? Yes. Telnet uses TCP port 23, whereas SSH uses TCP port 22. >Any one might have a clue? Thanks in advance for any help. >DB Let�s try to solve your problem. Cheers, Marcos Moura
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.268 / Virus Database: 140 - Release Date: 07/08/01
