Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "John R Larsen" To: giuseppe Date: Sat, 16 Apr 2005 10:22:05 -0400 MIME-Version: 1.0 Subject: Re: sshd problems Reply-To: theClaw56 AT larsen-family DOT us Cc: cygwin AT cygwin DOT com Message-ID: <4260E74D.29371.DFA10@localhost> In-reply-to: Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-IsSubscribed: yes From your data it appears that you can ssh to the localhost which means your sshd server is running. However, you can't connect to your localhost from the Linux machine; the connection times out. Your other examples all look like they are connections from the localhost to other machines, which all appear to work. Is this a Windows XP machine with Service Pack 2 installed? Have you opened up the firewall to allow port 22 through? If not, that explains your problem. Port 22 is blocked by default. The firewall won't block ssh connections originating from your localhost to other machines. That would be consistent with the data you've shown. John On 16 Apr 2005 at 9:03, giuseppe wrote: To: cygwin AT cygwin DOT com From: giuseppe Subject: Re: sshd problems Date sent: Sat, 16 Apr 2005 09:03:35 +0000 (UTC) [ Double-click this line for list subscription options ] dear john thanks a lot for your help; i write you here some answers at your indications - On the cygwin machine itself, can you "ssh localhost"? If you can't do that then sshd still has a - problem. If you can connect to localhost that proves that sshd is running okay on the cygwin - machine. - yes, ssh localhost works fine, (but isn't it working with loopback device instead of eth0??) - If you use the -v option you will get debug information that can be of help. Use this command: - ssh -v host_name - - where "host_name" is the name of the machine. If you're trying to connect to the cygwin - machine the command would be: - - ssh -v localhost - - You'll see lots of debug information. - - Once you can connect locally to the cygwin machine, then you can start solving the problems - from the Linux box. that's what happens from the cygwin machine ssh -v localhost OpenSSH_4.0p1, OpenSSL 0.9.7f 22 mar 2005 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to localhost [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/identity type -1 debug1: identity file /home/user/.ssh/id_rsa type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.0 debug1: match: OpenSSH_4.0 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.0 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'localhost' is known and matches the RSA host key. debug1: Found key in /home/user/.ssh/known_hosts:2 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey, password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/user/.ssh/identity debug1: Trying private key: /home/user/.ssh/id_rsa debug1: Trying private key: /home/user/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey, password,keyboard-interactive debug1: Next authentication method: password user AT localhost's password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: **************** from ************* that's what happens when I try ssh from linux machine (LM) to the cygwin machine(CM) ssh -v user AT ip_cgwin machine OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to ip_cgwin machine [ip_cgwin machine] port 22. debug1: connect to address ip_cgwin machine port 22: Connection timed out ssh: connect to host ip_cgwin machine port 22: Connection timed out I also add the ssh from the CM to ip_CM ssh -v ip_cgwin machine OpenSSH_4.0p1, OpenSSL 0.9.7f 22 mar 2005 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to ip_cgwin machine [ip_cgwin machine] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/identity type -1 debug1: identity file /home/user/.ssh/id_rsa type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.0 debug1: match: OpenSSH_4.0 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.0 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'ip_cygwin_machine' is known and matches the RSA host key. debug1: Found key in /home/user/.ssh/known_hosts:3 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey, password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/user/.ssh/identity debug1: Trying private key: /home/user/.ssh/id_rsa debug1: Trying private key: /home/user/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey, password,keyboard-interactive debug1: Next authentication method: password user AT ip_cygwin_machine password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: **************** from ************* I also add the ssh from the CM to LM: ssh -v ip_LM OpenSSH_4.0p1, OpenSSL 0.9.7f 22 mar 2005 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to ip_LM [ip_LM] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/identity type -1 debug1: identity file /home/user/.ssh/id_rsa type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1 debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.0 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'ip_LM' is known and matches the RSA host key. debug1: Found key in /home/user/.ssh/known_hosts:4 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey, gssapi-with-mic,password debug1: Next authentication method: publickey debug1: Trying private key: /home/user/.ssh/identity debug1: Trying private key: /home/user/.ssh/id_rsa debug1: Trying private key: /home/user/.ssh/id_dsa debug1: Next authentication method: password *****@ip_LM password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: **************** from ************* what do you think? why ssh does not work fine as server on CM? ssh works fine on LM both as client that as server (I proved it several times with other LM). other LM can't connect to CM via ssh too. Of course i can give other information if you need it. thans again best regards giuseppe -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ _______________________________________________________ John R Larsen http://larsen-family.us -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/