SSH server entry point. #77

Merged
lash merged 11 commits from lash/ssh-2 into master 2024-09-26 15:55:51 +02:00
Showing only changes of commit 3f3dbf414c - Show all commits

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>
``` ```