{"action":"closed","issue":{"url":"https://api.github.com/repos/mscdex/ssh2/issues/434","repository_url":"https://api.github.com/repos/mscdex/ssh2","labels_url":"https://api.github.com/repos/mscdex/ssh2/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/mscdex/ssh2/issues/434/comments","events_url":"https://api.github.com/repos/mscdex/ssh2/issues/434/events","html_url":"https://github.com/mscdex/ssh2/issues/434","id":157576379,"number":434,"title":"FlowSSH not returning 'ready'","user":{"login":"wmbutler","id":1254810,"avatar_url":"https://avatars.githubusercontent.com/u/1254810?v=3","gravatar_id":"","url":"https://api.github.com/users/wmbutler","html_url":"https://github.com/wmbutler","followers_url":"https://api.github.com/users/wmbutler/followers","following_url":"https://api.github.com/users/wmbutler/following{/other_user}","gists_url":"https://api.github.com/users/wmbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/wmbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmbutler/subscriptions","organizations_url":"https://api.github.com/users/wmbutler/orgs","repos_url":"https://api.github.com/users/wmbutler/repos","events_url":"https://api.github.com/users/wmbutler/events{/privacy}","received_events_url":"https://api.github.com/users/wmbutler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-31T02:05:42Z","updated_at":"2016-06-14T07:14:21Z","closed_at":"2016-06-14T07:14:21Z","body":"```Remote protocol version 2.0, remote software version 5.34 FlowSsh: Bitvise SSH Server (WinSSHD) 6.31```\r\n\r\nThis particular SFTP server is not returning a ready event. I'm just using username/password authentication. It also uses an alternate port 29 instead of the typical 22. I'm never getting to the \"Client :: ready\" console log.\r\n\r\nHere is the node code:\r\n\r\n```js\r\nvar credentials = {\r\n        host: 'redacted',\r\n        port: 29,\r\n        username: 'redacted',\r\n        password: 'redacted'\r\n    };\r\n\r\n\r\nfunction getFileListingFromSFTP() {\r\n    // Get a directory listing of the files\r\n    console.log('start');\r\n    var file = [];\r\n    var conn = new Client();\r\n    conn.on('ready', function(err) {\r\n      if (err) throw err;\r\n      console.log('Client :: ready');\r\n      conn.sftp(function(err, sftp) {\r\n        if (err) throw err;\r\n        sftp.readdir('/HOME/redacted/PI/MANUAL', function(err, res) {\r\n            if (err) throw err;\r\n            for (var n=0; n<res.length; n++) {\r\n                console.log(res[n]);\r\n                if (res[n].filename != 'PROCESSED' || res[n].filename != 'Temp') {\r\n                    // downloadFile(res[n]);\r\n                }\r\n            }\r\n            conn.end();\r\n        });\r\n      });\r\n    }).connect(credentials);\r\n    \r\n}\r\n\r\n\r\ngetFileListingFromSFTP()\r\n\r\n```\r\n\r\n\r\nHere is -vvv debug from a successful login on the unix cmd line\r\n\r\n```\r\nOpenSSH_6.9p1, LibreSSL 2.1.8\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: ssh_connect: needpriv 0\r\ndebug1: Connecting to redacted [redacted] port 29.\r\ndebug1: Connection established.\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_ecdsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_ecdsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_ed25519 type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /Users/bbutler/.ssh/id_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_6.9\r\ndebug1: Remote protocol version 2.0, remote software version 5.34 FlowSsh: Bitvise SSH Server (WinSSHD) 6.31\r\ndebug1: no match: 5.34 FlowSsh: Bitvise SSH Server (WinSSHD) 6.31\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to redacted:29 as 'redacted'\r\ndebug3: put_host_port: [redacted]:29\r\ndebug3: hostkeys_foreach: reading file \"/Users/redacted/.ssh/known_hosts\"\r\ndebug3: record_hostkey: found key type DSA in file /Users/bbutler/.ssh/known_hosts:5\r\ndebug3: load_hostkeys: loaded 1 keys from [redacted]:29\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-dss\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: kex_parse_kexinit: ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-dss,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-rsa\r\ndebug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se\r\ndebug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se\r\ndebug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96\r\ndebug2: kex_parse_kexinit: none,zlib@openssh.com,zlib\r\ndebug2: kex_parse_kexinit: none,zlib@openssh.com,zlib\r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: first_kex_follows 0 \r\ndebug2: kex_parse_kexinit: reserved 0 \r\ndebug2: kex_parse_kexinit: ecdh-sha2-1.3.132.0.10,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,gss-gex-sha1-toWM5Slw5Ew8Mqkay+al2g==,gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==\r\ndebug2: kex_parse_kexinit: ssh-dss\r\ndebug2: kex_parse_kexinit: aes256-ctr,aes256-cbc,aes192-ctr,aes192-cbc,aes128-ctr,aes128-cbc,3des-ctr,3des-cbc\r\ndebug2: kex_parse_kexinit: aes256-ctr,aes256-cbc,aes192-ctr,aes192-cbc,aes128-ctr,aes128-cbc,3des-ctr,3des-cbc\r\ndebug2: kex_parse_kexinit: hmac-sha2-256,hmac-sha1\r\ndebug2: kex_parse_kexinit: hmac-sha2-256,hmac-sha1\r\ndebug2: kex_parse_kexinit: zlib,none\r\ndebug2: kex_parse_kexinit: zlib,none\r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: \r\ndebug2: kex_parse_kexinit: first_kex_follows 0 \r\ndebug2: kex_parse_kexinit: reserved 0 \r\ndebug1: kex: server->client aes128-ctr hmac-sha2-256 none\r\ndebug1: kex: client->server aes128-ctr hmac-sha2-256 none\r\ndebug1: sending SSH2_MSG_KEX_ECDH_INIT\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug1: Server host key: ssh-dss SHA256:G1dS2nw5qwPqtz35GivcGmGobLpeLbGCfIhdFVCU0iU\r\ndebug3: put_host_port: [redacted]:29\r\ndebug3: put_host_port: [redacted]:29\r\ndebug3: hostkeys_foreach: reading file \"/Users/bbutler/.ssh/known_hosts\"\r\ndebug3: record_hostkey: found key type DSA in file /Users/bbutler/.ssh/known_hosts:5\r\ndebug3: load_hostkeys: loaded 1 keys from [redacted]:29\r\ndebug3: hostkeys_foreach: reading file \"/Users/bbutler/.ssh/known_hosts\"\r\ndebug3: record_hostkey: found key type DSA in file /Users/bbutler/.ssh/known_hosts:5\r\ndebug3: load_hostkeys: loaded 1 keys from [redacted]:29\r\ndebug1: Host '[redacted]:29' is known and matches the DSA host key.\r\ndebug1: Found key in /Users/bbutler/.ssh/known_hosts:5\r\ndebug2: set_newkeys: mode 1\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug2: set_newkeys: mode 0\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug1: SSH2_MSG_SERVICE_REQUEST sent\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug2: key: /Users/bbutler/.ssh/github_rsa (0x7f82da6006e0),\r\ndebug2: key: /Users/bbutler/.ssh/id_rsa (0x0),\r\ndebug2: key: /Users/bbutler/.ssh/id_dsa (0x0),\r\ndebug2: key: /Users/bbutler/.ssh/id_ecdsa (0x0),\r\ndebug2: key: /Users/bbutler/.ssh/id_ed25519 (0x0),\r\ndebug1: Authentications that can continue: publickey,gssapi-with-mic,password\r\ndebug3: start over, passed a different list publickey,gssapi-with-mic,password\r\ndebug3: preferred publickey,keyboard-interactive,password\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: keyboard-interactive,password\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering RSA public key: /Users/bbutler/.ssh/github_rsa\r\ndebug3: send_pubkey_test\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug1: Authentications that can continue: publickey,gssapi-with-mic,password\r\ndebug1: Trying private key: /Users/bbutler/.ssh/id_rsa\r\ndebug3: no such identity: /Users/bbutler/.ssh/id_rsa: No such file or directory\r\ndebug1: Trying private key: /Users/bbutler/.ssh/id_dsa\r\ndebug3: no such identity: /Users/bbutler/.ssh/id_dsa: No such file or directory\r\ndebug1: Trying private key: /Users/bbutler/.ssh/id_ecdsa\r\ndebug3: no such identity: /Users/bbutler/.ssh/id_ecdsa: No such file or directory\r\ndebug1: Trying private key: /Users/bbutler/.ssh/id_ed25519\r\ndebug3: no such identity: /Users/bbutler/.ssh/id_ed25519: No such file or directory\r\ndebug2: we did not send a packet, disable method\r\ndebug3: authmethod_lookup password\r\ndebug3: remaining preferred: ,password\r\ndebug3: authmethod_is_enabled password\r\ndebug1: Next authentication method: password\r\nredacted@redacted's password: \r\ndebug2: we sent a password packet, wait for reply\r\ndebug1: Authentication succeeded (password).\r\nAuthenticated to redacted ([redacted]:29).\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 6 is O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug1: Entering interactive session.\r\ndebug2: callback start\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x08\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env Apple_PubSub_Socket_Render\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env TERM_SESSION_ID\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env TERM_SESSION_CLASS_ID\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env PWD\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env HOME\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env SECURITYSESSIONID\r\ndebug3: Ignored env _\r\ndebug3: Ignored env OLDPWD\r\ndebug1: Sending subsystem: sftp\r\ndebug2: channel 0: request subsystem confirm 1\r\ndebug2: callback done\r\ndebug2: channel 0: open confirm rwindow 262144 rmax 65536\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: subsystem request accepted on channel 0\r\ndebug2: Remote version: 3\r\ndebug2: Unrecognised server extension \"versions\"\r\nConnected to redacted.\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> / size 0\r\n```"}}
{"actor":{"display_login":"mscdex"}}