windows - Cannot connect to Cygwin-based OpenSSH server with authorized_keys -


i have problem setting-up sshd service in windows 7 running cygwin. i've followed this tutorial , worked first time, after reboot public keys stored in ~/.ssh/authorized_keys won't allow me access machine external cli. in addition password authorization doesn't work, i've try reset password in cygwin using passwd testinguser.

these steps i've made far:

  • reinstall cygwin sshd service (i've removed other windows user accounts testinguser)
  • re-run ssh-host-config again, mentioned in tutorial
  • reset testinguser password cygwin console
  • set privileges .authorized_keys & parent folder:

    chmod 700 ~/.ssh & chmod 600 ~/.ssh/authorized_keys

  • disabled windows defender firewall , other av software (httpd works well)

below result of ssh <host> -v command:

debug1: remote protocol version 2.0, remote software version weonlydo 2.1.3 debug1: no match: weonlydo 2.1.3 debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_6.1p1 debian-4 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: sending ssh2_msg_kexdh_init debug1: expecting ssh2_msg_kexdh_reply debug1: server host key: rsa 5d:9b:19:36:1c:67:1d:c9:ef:91:7c:1e:e8:3b:ba:12 debug1: host '10.1.0.46' known , matches rsa host key. debug1: found key in /home/banasiak/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: ssh2_msg_newkeys sent debug1: expecting ssh2_msg_newkeys debug1: ssh2_msg_newkeys received debug1: roaming not allowed server debug1: ssh2_msg_service_request sent debug1: ssh2_msg_service_accept received debug1: authentications can continue: password,publickey debug1: next authentication method: publickey debug1: offering rsa public key: /home/banasiak/.ssh/id_rsa debug1: server accepts key: pkalg ssh-rsa blen 279 debug1: authentications can continue: password,publickey debug1: offering rsa public key: banasiak@pc-71-wroc debug1: server accepts key: pkalg ssh-rsa blen 279 debug1: authentications can continue: password,publickey debug1: trying private key: /home/banasiak/.ssh/id_dsa debug1: trying private key: /home/banasiak/.ssh/id_ecdsa debug1: next authentication method: password 

is there else should check? sshd service running correctly, can start&stop without errors.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -