mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-22 10:09:37 +01:00
Update README.md
This commit is contained in:
parent
ffff33f8fe
commit
fd39ef0f18
1 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@ SSH Proxy Setting:
|
|||
### Setting up SSH Key
|
||||
|
||||
Make sure to follow the below steps while creating SSH Keys and using them.
|
||||
The best practice is create the SSH Keys on local machine not remote machine.
|
||||
Login with username specified in Github Secrets. Generate a RSA Key-Pair:
|
||||
|
||||
```bash
|
||||
|
@ -91,7 +92,7 @@ Login with username specified in Github Secrets. Generate a RSA Key-Pair:
|
|||
Add newly generated key into Authorized keys. Read more about authorized keys [here](https://www.ssh.com/ssh/authorized_keys/).
|
||||
|
||||
```bash
|
||||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
||||
cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
|
||||
```
|
||||
|
||||
Copy Private Key content and paste in Github Secrets.
|
||||
|
|
Loading…
Reference in a new issue