Skip to content

Commit

Permalink
Update ssh.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Mar 25, 2024
1 parent 3202fd8 commit f9277db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/Server_Config/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ It is also possible to fetch the host key and append it to the known_hosts file
ssh-keyscan -t rsa -p $REMOTE_PORT $REMOTE_HOST >> ~/.ssh/known_hosts

```

To test the password:
```
ssh-keygen -y -f ~/.ssh/id_rsa
```

To enter it in one go we can also use `sshpass -p 'password' ssh xxx@yyy -i rsafile`

0 comments on commit f9277db

Please sign in to comment.