SSH не пускает по ключу: как быстро найти причину и восстановить доступ
- Words
- 91
- Chars
- 549
- AI summary
- Yes
The Permission denied (publickey) error rarely means the key is broken; more often the cause is file permissions, extra keys in the agent, or the sshd config. A diagnostic path begins with one ssh -vvv output: the lines Offering public key, Server accepts key and Too many authentication failures show which side has the problem. The article covers three branches—client, server and CI/CD—and separately explains why Host key verification failed is a different error.
Ошибка Permission denied (publickey) редко значит, что ключ сломался: чаще дело в правах на файлы, в лишних ключах агента или в конфиге sshd. В статье — маршрут диагностики, который начинается с одного вывода ssh -vvv : по строкам Offering public key, Server accepts key и Too many authentication failures видно, на чьей стороне проблема. Разбираем три ветки — клиент, сервер и CI/CD — и отдельно, почему Host key verification failed — это другая ошибка. В конце — дерево решений и таблица, где смотреть логи в Debian и RHEL. Разобрать подключение →
Open article