This commit is contained in:
20
Docs/SSH使用密钥连接.md
Normal file
20
Docs/SSH使用密钥连接.md
Normal file
@@ -0,0 +1,20 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# SSH使用密钥连接
|
||||
|
||||
1. 调整密钥权限
|
||||
|
||||
```bash
|
||||
chmod 400 *.pem
|
||||
```
|
||||
|
||||
2. SSH 指定密钥连接
|
||||
|
||||
```bash
|
||||
ssh -i ./*.pem root@192.168.1.100 -p 22
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user