При попытке установить ssh2 без пароля на мой сервер cygwin sshd на моем компьютере с Windows я получаю следующую ошибку в режиме -vvv

$ ssh2 -vvv -i .ssh2/id_rsa_2048_b -c aes128-ctr foobar@vm-333-333
2016-08-24 10:19:26: 6200 Broker_tcp_connect, Dst:  foobar@vm-333-333, Dst Port: 22, Src Port: -, Local username: toobar
2016-08-24 10:19:26: 1002 Algorithm_negotiation_success, "kex_algorithm=diffie-hellman-group14-sha1, hostkey_algorithm=ssh-rsa, cipher=aes128-ctr/aes128-ctr, mac=hmac-sha1/hmac-sha1, compression=none/none", Session-Id: 6
2016-08-24 10:19:26: 6204 Broker_transport_connect, Dst: foobar@vm-333-333, Dst Port: 22, Remote username: root, Src Port: 43109, Local username: toobar, Session-Id: 6
2016-08-24 10:19:26: 1003 KEX_success, Algorithm: diffie-hellman-group14-sha1, Modulus: 2048 bits, Session-Id: 6, Protocol-session-Id: C80B284B51046645A99EDD512FD3E52BEF204ABA
2016-08-24 10:19:26: 703 Auth_methods_available, Auth methods: publickey,keyboard-interactive, Session-Id: 6
2016-08-24 10:19:26: 6303 Broker_userauth_method_failure, "publickey", Session-Id: 6
2016-08-24 10:19:26: 6209 Broker_connection_connect_failed, Dst: foobar@vm-333-333, Dst Port: 22, Local username: toobar, Remote username: foobar, Uses gateway?: No, Session-Id: 6, "Protocol error, Too many authentication failures, remote disconnect"
Connection open failed; Protocol error (remote): Too many authentication failures

Прочитав "Слишком много ошибок аутентификации", я решил добавить следующие строки в мой файл sshd_config и перезапустить его безрезультатно.

MaxAuthTries 30
RSAAuthentication yes  
PubKeyAuthentication yes

Я отправил файл .ssh2/id_rsa_2048_b.pub в оба авторизованных ключа и в authroized_keys2, и все разрешения для моих ключей настроены правильно. Соединение работает, когда я ввожу пароль. Я не уверен, как поступить.

0