💪🏻 OpenSSH
use
生成密钥对
| Bash | |
|---|---|
1 | |
-t:密钥类型-m:密钥格式-b:密钥位数-C:追加到公钥文件末尾以便于识别的注释
免密登录
remote:将公钥 id_rsa.pub 放入 authorized_keys
local:修改私钥 id_rsa 权限 chmod 600 ~/.ssh/id_rsa
| Bash | |
|---|---|
1 | |
-t:密钥类型-m:密钥格式-b:密钥位数-C:追加到公钥文件末尾以便于识别的注释remote:将公钥 id_rsa.pub 放入 authorized_keys
local:修改私钥 id_rsa 权限 chmod 600 ~/.ssh/id_rsa