Skip to content

Load key “~/.ssh/id_rsa”: bad permissions

При подключении к серверу возникла следующая проблема — не подхватил ssh key, полный текст ошибки ниже

The authenticity of host ' (' can't be established.
ECDSA key fingerprint is SHA256:xxxxxxxxxxxxD/M0rPWX2Jxxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
Permissions 0777 for '/Users/USER/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/USER/.ssh/id_rsa": bad permissions

Решается установкой корректных прав на ключ

chmod 400 ~/.ssh/id_rsa

Published inHOWTO

Be First to Comment

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *