

SSH Files Permission
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.

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 指令的单周期处理器开发
Recommend
-
179
Mozilla’s Mr. Robot promo backfires after it installs a Firefox extension without permission...
-
139
Closed Bug 1368744...
-
201
AndPermission - :apple: Android runtime permission manager, simplify request runtime permission process.
-
153
An extension is software developed by a third party that modifies how you experience the web in Firefox. Since they work by tapping into the ...
-
169
Permission handling should be simple, but not the case in Android. Or at least before you know a lot about it. This article aims to solve that problem. And we will use Anko here to make it better.
-
120
Linux - @AllOfMe - 最近在搭建一个内网应用,提示 glibc 版本过低,所以我先通过 rpm 卸载一些应用。 但是后面发现 yum 命令还有其他很多命令都用不了,提示说:/lib64/ld-linux-x8
-
15
Permission Denied When You Try to Copy Shared Files to a Local Drive to Ruby advertisements Here is my very basic copy code...
-
6
[Bash] Remove Execute Permission of Files in Directory Recursively ...
-
8
Using an Access Control List to set default permission for new files in a directory on Linux Posted on
-
6
Encountered a ‘Permission Denied’ error on a file copied to a Docker image or when accessing a file on a mounted volume within a Docker container? In this blog, you will learn why you get a ‘Permission Denied’ error and how to solve it. Enjoy!...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK