Add linux auth without password

This commit is contained in:
2020-01-06 00:09:57 +11:00
parent 8747167803
commit 9f3e0d4e21
+12
View File
@@ -7,6 +7,18 @@ Do not use default `22` port
```bash ```bash
ssh user@ip -p 22222 ssh user@ip -p 22222
``` ```
Login without password
```bash
# adds private key identities to the authentication agent
ssh-add ~/.ssh/id_rsa
# use locally available keys to authorise logins on a remote machine
ssh-copy-id user@ip -p 22222
```
### IP table ### IP table
### Cron job ### Cron job