4

SSH Files Permission

 2 years ago
source link: https://blog.triplez.cn/posts/ssh-files-permission/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

SSH Files Permission

September 11, 2017 · 1 分钟 · TripleZ

使用 Win10 下的 Ubuntu 子系统的时候,把秘钥直接扔进去总是有问题,后来发现是文件的权限问题,故写个 note 记录一下。

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 :)


知识共享许可协议
本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。

« 上一页
将 Markdown 文件导出成 PDF 格式
下一页 »
支持 45 条 MIPS 指令的单周期处理器开发


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK