{"action":"created","issue":{"url":"https://api.github.com/repos/sshtools/j2ssh-maverick/issues/15","repository_url":"https://api.github.com/repos/sshtools/j2ssh-maverick","labels_url":"https://api.github.com/repos/sshtools/j2ssh-maverick/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/sshtools/j2ssh-maverick/issues/15/comments","events_url":"https://api.github.com/repos/sshtools/j2ssh-maverick/issues/15/events","html_url":"https://github.com/sshtools/j2ssh-maverick/issues/15","id":356369671,"node_id":"MDU6SXNzdWUzNTYzNjk2NzE=","number":15,"title":"Ssh2HostbasedAuthentication not work","user":{"login":"bibitoo","id":6244522,"node_id":"MDQ6VXNlcjYyNDQ1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6244522?v=4","gravatar_id":"","url":"https://api.github.com/users/bibitoo","html_url":"https://github.com/bibitoo","followers_url":"https://api.github.com/users/bibitoo/followers","following_url":"https://api.github.com/users/bibitoo/following{/other_user}","gists_url":"https://api.github.com/users/bibitoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bibitoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bibitoo/subscriptions","organizations_url":"https://api.github.com/users/bibitoo/orgs","repos_url":"https://api.github.com/users/bibitoo/repos","events_url":"https://api.github.com/users/bibitoo/events{/privacy}","received_events_url":"https://api.github.com/users/bibitoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-03T06:12:15Z","updated_at":"2018-09-12T02:30:50Z","closed_at":null,"author_association":"NONE","body":"I have run SSH2HostbasedConnect class by change private key file to my own, but allways got \r\nINFO: Authentication failed error. \r\n\r\ninfo:\r\nusername:root\r\nserver:CentOS 6 x64\r\nserver authorized_keys fifle:\r\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCN3IEHqmfEIUKh4Rdhh/0McuKVVfBsAil2mlLoRl+2oDdvCC8TaREpqrgv7s/+N6KDGt3x2TT8E2LS32vWp/a01zcvLmUUizpaFHeiL0ji6XFRkSzWxm3/Z1AVT16H/fLIpa5wNTx4Dg++jtLY1iLw205CNILIxur88fiqUg7aPw== root\r\n \r\nclient: ubuntu 18.04\r\nclient private key file:\r\n-----BEGIN RSA PRIVATE KEY-----\r\nMIICWwIBAAKBgQCN3IEHqmfEIUKh4Rdhh/0McuKVVfBsAil2mlLoRl+2oDdvCC8T\r\naREpqrgv7s/+N6KDGt3x2TT8E2LS32vWp/a01zcvLmUUizpaFHeiL0ji6XFRkSzW\r\nxm3/Z1AVT16H/fLIpa5wNTx4Dg++jtLY1iLw205CNILIxur88fiqUg7aPwIDAQAB\r\nAoGACY1ojtiVpipLL1VV2rZqfrUZts6TouI+YoMfxA5BEa4WLX7SlK8FfdXGE0w0\r\nazzZz5Q2j7t9it/PTr3GqCylOwwsgsAcofoL0rQFAAkcgodTCU6j8xrs5fUCTx93\r\n7syHgJEi3a2CytwMWESWxbNCql7GSTRaBqOvT1A6bMFDq9kCQQDexI/DNpihOlhY\r\nioYYQy/gc9moA/y1Vgqk6spfAXrNAAvE5D+4JUutarDS9/RmZjGu8dINcKjCgrQk\r\n2a4SmYD7AkEAowYlyu8/XquslXuFqZU8732iglmnQcOdohGEnTs3R6u6OwdmtN6I\r\nn5L+exzzDZ7VtrxjeCfwAFl96FfWJy9wjQJAIGTA6wgzZa6QTj/GhByxB5iRHAeI\r\nZe4fGiAyUWJrswfArl7qjSKPQKZ1FBiOZ52Qt/neK6ooQDC1dW5aC8ZapQJAXpSE\r\nfJYNR9mFyTvesiJZNgDHtaRZ+zeITqynKalfSv+AjhqfJbQtw5a+eaK0CGTsTJZD\r\nh0R0Y1+IQrIjFpzZSQJAeiIvqSs4oDe7kcapCB1ln4dfajn4YvxJ3twQidIgLVsX\r\nzU5TT24v5H1EFg+BqPwzQcuhE3fETD1lvTOTq+h/Vg==\r\n-----END RSA PRIVATE KEY-----\r\n"},"comment":{"url":"https://api.github.com/repos/sshtools/j2ssh-maverick/issues/comments/420491245","html_url":"https://github.com/sshtools/j2ssh-maverick/issues/15#issuecomment-420491245","issue_url":"https://api.github.com/repos/sshtools/j2ssh-maverick/issues/15","id":420491245,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDQ5MTI0NQ==","user":{"login":"bibitoo","id":6244522,"node_id":"MDQ6VXNlcjYyNDQ1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6244522?v=4","gravatar_id":"","url":"https://api.github.com/users/bibitoo","html_url":"https://github.com/bibitoo","followers_url":"https://api.github.com/users/bibitoo/followers","following_url":"https://api.github.com/users/bibitoo/following{/other_user}","gists_url":"https://api.github.com/users/bibitoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bibitoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bibitoo/subscriptions","organizations_url":"https://api.github.com/users/bibitoo/orgs","repos_url":"https://api.github.com/users/bibitoo/repos","events_url":"https://api.github.com/users/bibitoo/events{/privacy}","received_events_url":"https://api.github.com/users/bibitoo/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T02:30:50Z","updated_at":"2018-09-12T02:30:50Z","author_association":"NONE","body":"> Hi Bibitoo,\r\n> \r\n> Please check if the following works and would you please share the console logs(success/failure).\r\n> \"sftp -vv -i mypubkey root@server\" on gnome terminal,\r\n@vionixt \r\n```\r\nbibi@GS63-7RE:~$ sftp -vv -i mykey root@66.42.44.175\r\nOpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n  7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolving \"66.42.44.175\" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 66.42.44.175 [66.42.44.175] port 22.\r\ndebug1: Connection established.\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file mykey type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file mykey-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 66.42.44.175:22 as 'root'\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: 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\r\ndebug2: MACs stoc: 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\r\ndebug2: compression ctos: none,zlib@openssh.com,zlib\r\ndebug2: compression stoc: none,zlib@openssh.com,zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: 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\r\ndebug2: MACs stoc: 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\r\ndebug2: compression ctos: none,zlib@openssh.com\r\ndebug2: compression stoc: none,zlib@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:+MErtyMvWF/5cLH7vIg5R68GREowkJ7AGZdQIyvLQVo\r\ndebug1: Host '66.42.44.175' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/bibi/.ssh/known_hosts:1\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey after 134217728 blocks\r\ndebug2: key: mykey ((nil)), explicit\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password\r\ndebug1: Next authentication method: gssapi-keyex\r\ndebug1: No valid Key exchange context\r\ndebug2: we did not send a packet, disable method\r\ndebug1: Next authentication method: gssapi-with-mic\r\ndebug1: Unspecified GSS failure.  Minor code may provide more information\r\nNo Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1001)\r\n\r\ndebug1: Unspecified GSS failure.  Minor code may provide more information\r\nNo Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1001)\r\n\r\ndebug2: we did not send a packet, disable method\r\ndebug1: Next authentication method: publickey\r\ndebug1: Trying private key: mykey\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 66.42.44.175 ([66.42.44.175]:22).\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug2: channel 0: send open\r\ndebug1: Requesting no-more-sessions@openssh.com\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = zh_CN.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug1: Sending subsystem: sftp\r\ndebug2: channel 0: request subsystem confirm 1\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 0: rcvd adjust 2097152\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: Server supports extension \"posix-rename@openssh.com\" revision 1\r\ndebug2: Server supports extension \"statvfs@openssh.com\" revision 2\r\ndebug2: Server supports extension \"fstatvfs@openssh.com\" revision 2\r\ndebug2: Server supports extension \"hardlink@openssh.com\" revision 1\r\ndebug2: Server supports extension \"fsync@openssh.com\" revision 1\r\nConnected to 66.42.44.175.\r\nsftp>\r\n```"}}
{"actor":{"display_login":"bibitoo"}}