

InterviewSolution
Saved Bookmarks
1. |
Solve : CopSSH not working in windows 7 32bit? |
Answer» <html><body><br/>I have three systems with the IP's:<br/>XX.188: Windows 7 32-bit System with copSSH installed<br/>XX.125: Windows 7 64-bit SYstem with copSSH Installed<br/>XX.220: Winodws XP proffessional with cygwin installed<br/>When I try to SSH from 188 to 125/220 it works like butter no problem at all.<br/>But, when i try to ssh to 188 from 125/220 it logins succesfully for the first time, but after the 1st attempt it fails randomly. <br/>Consider you attempt 5 times after first login:<br/>Then there are 2/5 chances u can login or 3/5 or if your luck is good 5/5.<br/>But 5/5 rarely happens.<br/>Here is the script file of XX.220:<br/>Script started on Tue Aug 3 19:20:12 2010<br/>[<a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:20:06 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:24:30 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:24:40 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:24:47 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:24:54 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:25:02 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:25:14 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>shell request failed on channel 0<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>ssh_exchange_identification: read: Connection <a href="https://interviewquestions.tuteehub.com/tag/reset-11478" style="font-weight:bold;" target="_blank" title="Click to know more about RESET">RESET</a> by peer<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:25:20 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.188 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh [K[Ksh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>sh: sssh: command not found<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ sh[K[Ksssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a>[1P<br/>Last login: Fri Sep 3 03:23:25 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.125 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:26:18 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.125 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:26:24 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.125 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ ssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:26:30 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.125 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ logou[K[K[K[K[Kssh <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>Last login: Fri Sep 3 03:26:42 2010 from dtmoutbound20.in.ibm.com<br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/>$ logout<br/><br/>Connection to 9.120.96.125 closed.<br/><br/><br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a> <br/><br/>$ scipt[K[K[K[K[Kexit<br/>exit<br/><br/>Script done on Tue Aug 3 19:24:14 2010<br/><a href="https://img237.imageshack.us/i/problem188.jpg/"></a><br/><a href="https://img27.imageshack.us/i/problem125.jpg/"></a><br/><br/>I would appreciate any help regarding this problem. In verbose mode:<br/>This is what i found.<br/>Unsuccessful Attempt script file:<br/>Script started on Wed Aug 4 21:07:33 2010<br/>]0;~<br/><br/>[<a href="/cdn-cgi/l/email-protection">[emailprotected]</a> [33m~[0m<br/><br/>$ exit<br/>[C[Cssh -vvv <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010<br/>debug1: Reading configuration data /etc/ssh_config<br/><br/>debug2: ssh_connect: needpriv 0<br/><br/>debug1: Connecting to 9.120.96.188 [9.120.96.188] port 22.<br/><br/>debug1: Connection established.<br/><br/>debug1: identity file /home/Administrator/.ssh/id_rsa type -1<br/><br/>debug1: identity file /home/Administrator/.ssh/id_rsa-cert type -1<br/><br/>debug1: identity file /home/Administrator/.ssh/id_dsa type -1<br/><br/>debug1: identity file /home/Administrator/.ssh/id_dsa-cert type -1<br/><br/>debug1: Remote protocol version 2.0, remote software version OpenSSH_5.4<br/><br/>debug1: match: OpenSSH_5.4 pat OpenSSH*<br/><br/>debug1: Enabling compatibility mode for protocol 2.0<br/><br/>debug1: Local version string SSH-2.0-OpenSSH_5.4<br/><br/>debug2: fd 3 setting O_NONBLOCK<br/><br/>debug1: SSH2_MSG_KEXINIT sent<br/><br/>Read from <a href="https://interviewquestions.tuteehub.com/tag/socket-1215466" style="font-weight:bold;" target="_blank" title="Click to know more about SOCKET">SOCKET</a> failed: Connection reset by peer<br/><br/>]0;~<br/><br/>[<a href="/cdn-cgi/l/email-protection">[emailprotected]</a> [33m~[0m<br/><br/>$ exit<br/>exit<br/><br/>Script done on Wed Aug 4 21:07:45 2010<br/>------------------------------------------------------------------------------------<br/>Successful script file:<br/>Script started on Wed Aug 4 21:07:52 2010<br/>]0;~<br/><br/>[<a href="/cdn-cgi/l/email-protection">[emailprotected]</a> [33m~[0m<br/><br/>$ exit<br/>[C[Cssh -vvv <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010<br/>debug1: Reading configuration data /etc/ssh_config<br/><br/>debug2: ssh_connect: needpriv 0<br/><br/>debug1: Connecting to 9.120.96.188 [9.120.96.188] port 22.<br/><br/>debug1: Connection established.<br/><br/>debug1: identity file /home/Administrator/.ssh/id_rsa type -1<br/><br/>debug1: identity file /home/Administrator/.ssh/id_rsa-cert type -1<br/><br/>debug1: identity file /home/Administrator/.ssh/id_dsa type -1<br/><br/>debug1: identity file /home/Administrator/.ssh/id_dsa-cert type -1<br/><br/>debug1: Remote protocol version 2.0, remote software version OpenSSH_5.4<br/><br/>debug1: match: OpenSSH_5.4 pat OpenSSH*<br/><br/>debug1: Enabling compatibility mode for protocol 2.0<br/><br/>debug1: Local version string SSH-2.0-OpenSSH_5.4<br/><br/>debug2: fd 3 setting O_NONBLOCK<br/><br/>debug1: SSH2_MSG_KEXINIT sent<br/><br/>debug1: SSH2_MSG_KEXINIT received<br/><br/>debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1<br/><br/>debug2: kex_parse_kexinit: <a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,ssh-rsa,ssh-dss<br/><br/>debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/><br/>debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/><br/>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-ripemd160,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-sha1-96,hmac-md5-96<br/><br/>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-ripemd160,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-sha1-96,hmac-md5-96<br/><br/>debug2: kex_parse_kexinit: none,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,zlib<br/><br/>debug2: kex_parse_kexinit: none,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,zlib<br/><br/>debug2: kex_parse_kexinit: <br/><br/>debug2: kex_parse_kexinit: <br/><br/>debug2: kex_parse_kexinit: first_kex_follows 0 <br/><br/>debug2: kex_parse_kexinit: <a href="https://interviewquestions.tuteehub.com/tag/reserved-613903" style="font-weight:bold;" target="_blank" title="Click to know more about RESERVED">RESERVED</a> 0 <br/><br/>debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1<br/><br/>debug2: kex_parse_kexinit: ssh-rsa,ssh-dss<br/><br/>debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/><br/>debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/><br/>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-ripemd160,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-sha1-96,hmac-md5-96<br/><br/>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-ripemd160,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a>,hmac-sha1-96,hmac-md5-96<br/><br/>debug2: kex_parse_kexinit: none,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/><br/>debug2: kex_parse_kexinit: none,<a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/><br/>debug2: kex_parse_kexinit: <br/><br/>debug2: kex_parse_kexinit: <br/><br/>debug2: kex_parse_kexinit: first_kex_follows 0 <br/><br/>debug2: kex_parse_kexinit: reserved 0 <br/><br/>debug2: mac_setup: found hmac-md5<br/><br/>debug1: kex: <a href="https://interviewquestions.tuteehub.com/tag/server-11236" style="font-weight:bold;" target="_blank" title="Click to know more about SERVER">SERVER</a>->client aes128-ctr hmac-md5 none<br/><br/>debug2: mac_setup: found hmac-md5<br/><br/>debug1: kex: client->server aes128-ctr hmac-md5 none<br/><br/>debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent<br/><br/>debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP<br/><br/>debug2: dh_gen_key: priv key bits set: 130/256<br/><br/>debug2: bits set: 497/1024<br/><br/>debug1: SSH2_MSG_KEX_DH_GEX_INIT sent<br/><br/>debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY<br/><br/>debug3: check_host_in_hostfile: host 9.120.96.188 filename /home/Administrator/.ssh/known_hosts<br/><br/>debug3: check_host_in_hostfile: host 9.120.96.188 filename /home/Administrator/.ssh/known_hosts<br/><br/>debug3: check_host_in_hostfile: match line 1<br/><br/>debug1: Host '9.120.96.188' is known and matches the RSA host key.<br/><br/>debug1: Found key in /home/Administrator/.ssh/known_hosts:1<br/><br/>debug2: bits set: 497/1024<br/><br/>debug1: ssh_rsa_verify: signature correct<br/><br/>debug2: kex_derive_keys<br/><br/>debug2: set_newkeys: mode 1<br/><br/>debug1: SSH2_MSG_NEWKEYS sent<br/><br/>debug1: expecting SSH2_MSG_NEWKEYS<br/><br/>debug2: set_newkeys: mode 0<br/><br/>debug1: SSH2_MSG_NEWKEYS received<br/><br/>debug1: Roaming not allowed by server<br/><br/>debug1: SSH2_MSG_SERVICE_REQUEST sent<br/><br/>debug2: service_accept: ssh-userauth<br/><br/>debug1: SSH2_MSG_SERVICE_ACCEPT received<br/><br/>debug2: key: /home/Administrator/.ssh/id_rsa (0x0)<br/><br/>debug2: key: /home/Administrator/.ssh/id_dsa (0x0)<br/><br/>debug1: Authentications that can continue: publickey,password,keyboard-interactive<br/><br/>debug3: start over, passed a different list publickey,password,keyboard-interactive<br/><br/>debug3: preferred publickey,keyboard-interactive,password<br/><br/>debug3: authmethod_lookup publickey<br/><br/>debug3: remaining preferred: keyboard-interactive,password<br/><br/>debug3: authmethod_is_enabled publickey<br/><br/>debug1: Next authentication method: publickey<br/><br/>debug1: Trying private key: /home/Administrator/.ssh/id_rsa<br/><br/>debug3: no such identity: /home/Administrator/.ssh/id_rsa<br/><br/>debug1: Trying private key: /home/Administrator/.ssh/id_dsa<br/><br/>debug3: no such identity: /home/Administrator/.ssh/id_dsa<br/><br/>debug2: we did not send a packet, disable method<br/><br/>debug3: authmethod_lookup keyboard-interactive<br/><br/>debug3: remaining preferred: password<br/><br/>debug3: authmethod_is_enabled keyboard-interactive<br/><br/>debug1: Next authentication method: keyboard-interactive<br/><br/>debug2: userauth_kbdint<br/><br/>debug2: we sent a keyboard-interactive packet, wait for reply<br/><br/>debug1: Authentications that can continue: publickey,password,keyboard-interactive<br/><br/>debug3: userauth_kbdint: disable: no info_req_seen<br/><br/>debug2: we did not send a packet, disable method<br/><br/>debug3: authmethod_lookup password<br/><br/>debug3: remaining preferred: <br/><br/>debug3: authmethod_is_enabled password<br/><br/>debug1: Next authentication method: password<br/><br/><a href="/cdn-cgi/l/email-protection">[emailprotected]</a>'s password: <br/>debug3: packet_send2: adding 48 (len 66 padlen 14 extra_pad 64)<br/>debug2: we sent a password packet, wait for reply<br/>debug1: Authentication succeeded (password).<br/>debug1: channel 0: new [client-session]<br/>debug3: ssh_session2_open: channel_new: 0<br/>debug2: channel 0: send open<br/>debug1: Requesting <a href="/cdn-cgi/l/email-protection">[emailprotected]</a><br/>debug1: Entering interactive session.<br/>debug2: callback start<br/>debug2: client_session2_setup: id 0<br/>debug2: channel 0: request pty-req confirm 1<br/>debug2: channel 0: request shell confirm 1<br/>debug2: fd 3 setting TCP_NODELAY<br/>debug2: callback done<br/>debug2: channel 0: open confirm rwindow 0 rmax 32768<br/>debug2: channel_input_status_confirm: type 99 id 0<br/>debug2: PTY allocation request accepted on channel 0<br/>debug2: channel 0: rcvd adjust 2097152<br/>debug2: channel_input_status_confirm: type 99 id 0<br/>debug2: shell request accepted on channel 0<br/>Last login: Sat Sep 4 05:11:19 2010 from dtmoutbound20.in.ibm.com<br/><br/>]0;~<br/>[<a href="/cdn-cgi/l/email-protection">[emailprotected]</a> [33m~[0m<br/>$ logoutdebug1: client_input_channel_req: channel 0 rtype exit-status reply 0<br/><br/>debug1: client_input_channel_req: channel 0 rtype <a href="/cdn-cgi/l/email-protection">[emailprotected]</a> reply 0<br/><br/>debug2: channel 0: rcvd eow<br/><br/>debug2: channel 0: close_read<br/><br/>debug2: channel 0: input open -> closed<br/><br/>debug2: channel 0: rcvd eof<br/><br/>debug2: channel 0: output open -> drain<br/><br/>debug2: channel 0: rcvd close<br/><br/>debug3: channel 0: will not send data after close<br/><br/><br/><br/>debug3: channel 0: will not send data after close<br/><br/>debug2: channel 0: obuf empty<br/><br/>debug2: channel 0: close_write<br/><br/>debug2: channel 0: output drain -> closed<br/><br/>debug2: channel 0: almost dead<br/><br/>debug2: channel 0: gc: notify user<br/><br/>debug2: channel 0: gc: user detached<br/><br/>debug2: channel 0: send close<br/><br/>debug2: channel 0: is dead<br/><br/>debug2: channel 0: garbage collecting<br/><br/>debug1: channel 0: free: client-session, nchannels 1<br/><br/>debug3: channel 0: status: The following connections are open:<br/><br/> #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)<br/><br/><br/><br/>debug3: channel 0: close_fds r -1 w -1 e 6<br/><br/>Connection to 9.120.96.188 closed.<br/><br/>Transferred: sent 2056, received 2456 bytes, in 3.7 seconds<br/><br/>Bytes <a href="https://interviewquestions.tuteehub.com/tag/per-590802" style="font-weight:bold;" target="_blank" title="Click to know more about PER">PER</a> second: sent 557.6, received 666.1<br/><br/>debug1: Exit status 0<br/><br/>]0;~<br/><br/>[<a href="/cdn-cgi/l/email-protection">[emailprotected]</a> [33m~[0m<br/><br/>$ exit<br/>exit<br/><br/>Script done on Wed Aug 4 21:08:06 2010What are the other alternatives for SSH.</body></html> | |