We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a173f84 commit b46b8bcCopy full SHA for b46b8bc
1 file changed
Linux.md
@@ -383,4 +383,17 @@ $ find . -type f -name "*.py" | xargs wc -l
383
$ find . -name "*.py" | xargs wc -l
384
# 过滤某些后缀
385
$ find . -type f ! -name "*.pyc" | xargs wc -l
386
-```
+```
387
+
388
+SSH 免密登陆远程主机
389
390
+将本机公钥添加到对方 authorized_keys 中
391
392
+$ ssh user@host 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub
393
394
+注意权限设置:
395
396
+1) .ssh目录的权限必须是700
397
+2) .ssh/authorized_keys文件权限必须是600
398
+$ chmod 600 authorized_keys
399
0 commit comments