Skip to content

Commit ed5b0f0

Browse files
author
Hauke Ingwersen
committed
added how to key known hosts in readme ?
1 parent 8de3939 commit ed5b0f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ Docker image to run remote commands via SSH.
1313
### Known hosts
1414

1515
To add your host to the known hosts of the SSH agent, simply add the content to the environment variable `$SSH_KNOWN_HOSTS`.
16+
To get the the public key for your host, you can use `ssh-keyscan`
17+
18+
```
19+
$ ssh-keyscan -p <port> <ip-or-hostname>
20+
```
21+
22+
Put the output of the command into the `$SSH_KNOWN_HOSTS` environment variable.
1623

1724
### SSH Private Key
1825

0 commit comments

Comments
 (0)