Private / Public Key Permission

  • Should be 600 (Read / Write by current user ONLY).
$ sudo chmod 600 ~/.ssh/id_rsa
$ sudo chmod 600 ~/.ssh/id_rsa.pub

Known_hosts Permission

  • Should be 644 (Read / Write by current user & Read ONLY by other users).
$ sudo chmod 644 ~/.ssh/known_hosts

 

.ssh Directory Permission

  • Should be 755 (Read / Write / Execute by current user & Read / Execute by other users).
$ sudo chmod 755 ~/.ssh

 

SSH files permission resolved 🙂

    分享到:
分类: Linux

1 条评论

foxwest · 2017年9月12日 下午8:27

checked.
超链接可以去掉吧哈哈哈哈哈

发表评论

电子邮件地址不会被公开。 必填项已用*标注

验证码 *