SSH

SSH 公開鍵・秘密鍵準備完了したのに接続できないときに疑うこと

­SSHで接続しようと鍵の準備万端で接続しようとして、

Permissions 0664 for '/home/hoge/.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 "/home/hoge/.ssh/id_rsa": bad permissions
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

­と怒られました。

$ chmod 600 ~/.ssh/id_rsa




で解決。

-SSH
-

© 2024 yshystsj.com Powered by AFFINGER5