ssh-copy-id Не запрашивает пароль, а перебирает ключи - как исправить (Too many authentication failures). SSH
Primary tabs
Наблюдаем ситуацию при попытке отправить ключ на сервер:
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "mazalov.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Received disconnect from ..... port 22:2: Too many authentication failures
Connection to ..... closed by remote host.
Решение
Можно использовать опции
ssh -o PreferredAuthentications=password \ -o PubkeyAuthentication=no
На самом деле достаточно использовать первую:
ssh -o PreferredAuthentications=password
Например:
ssh-copy-id -i mykey.pub -o PreferredAuthentications=password fauser@155.155.155.155
- Log in to post comments
- 3118 reads