fix: adjust sample ssh-keyscan call

. Drop the <user>, since `ssh-keyscan` doesn't accept it.
. Illustrate -t keytype, consistent with the output provided.
. Clarify that the target can be specified either with a hostname or with an ip address.
This commit is contained in:
pancho horrillo 2024-02-19 07:17:16 +01:00 committed by GitHub
parent 8cb01a0e71
commit 46d1180ca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ e.g. inside your `flake.nix` file:
* your local computer usually in `~/.ssh`, e.g. `~/.ssh/id_ed25519.pub`.
* from a running target machine with `ssh-keyscan`:
```ShellSession
$ ssh-keyscan <user>@<ip-address>
$ ssh-keyscan -t ed25519 <hostname-or-ip-address>
... ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKzxQgondgEYcLpcPdJLrTdNgZ2gznOHCAxMdaceTUT1
...
```