Clarify keyfile use in readme

This commit is contained in:
lash 2024-09-22 16:13:30 +01:00
parent e4c3e9f015
commit 3f3dbf414c
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -8,14 +8,14 @@ An SSH server entry point for the vise engine.
Map your (client) public key to a session identifier (e.g. phone number) Map your (client) public key to a session identifier (e.g. phone number)
``` ```
go run -v -tags logtrace ./cmd/ssh/sshkey/main.go -i <session_id> [--dbdir <dbpath>] <publickey_filepath> go run -v -tags logtrace ./cmd/ssh/sshkey/main.go -i <session_id> [--dbdir <dbpath>] <client_publickey_filepath>
``` ```
## Create a private key for the server ## Create a private key for the server
``` ```
ssh-keygen -N "" -f <privatekey_filepath> ssh-keygen -N "" -f <server_privatekey_filepath>
``` ```
@ -23,12 +23,12 @@ ssh-keygen -N "" -f <privatekey_filepath>
``` ```
go run -v -tags logtrace ./cmd/ssh/main.go -h <host> -p <port> [--dbdir <dbpath>] <privatekey_filepath> go run -v -tags logtrace ./cmd/ssh/main.go -h <host> -p <port> [--dbdir <dbpath>] <server_privatekey_filepath>
``` ```
## Connect to the server ## Connect to the server
``` ```
ssh -T -p <port> <host> ssh -T -p <port> -i <client_publickey_filepath> <host>
``` ```