Skip to content

Commit f981807

Browse files
committed
🚧 bash
1 parent 48bafd1 commit f981807

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

markdown-file/Bash.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ drwxr-xr-x. 5 root root 4096 3月 26 10:57,其中最前面的 d 表示这是
140140

141141
## 用户、权限-相关命令
142142

143+
- 使用 pem 证书登录:`ssh -i /opt/mykey.pem root@192.168.0.70`
144+
- 证书权限不能太大,不然无法使用:`chmod 600 mykey.pem`
143145
- `hostname`,查看当前登陆用户全名
144146
- `cat /etc/group`,查看所有组
145147
- `cat /etc/passwd`,查看所有用户

0 commit comments

Comments
 (0)