ussd/cmd/ssh/README.md

35 lines
638 B
Markdown
Raw Normal View History

2024-09-22 17:09:57 +02:00
# URDT-USSD SSH server
An SSH server entry point for the vise engine.
## Adding public keys for access
Map your (client) public key to a session identifier (e.g. phone number)
```
2024-09-22 17:13:30 +02:00
go run -v -tags logtrace ./cmd/ssh/sshkey/main.go -i <session_id> [--dbdir <dbpath>] <client_publickey_filepath>
2024-09-22 17:09:57 +02:00
```
## Create a private key for the server
```
2024-09-22 17:13:30 +02:00
ssh-keygen -N "" -f <server_privatekey_filepath>
2024-09-22 17:09:57 +02:00
```
## Run the server
```
2024-09-22 17:13:30 +02:00
go run -v -tags logtrace ./cmd/ssh/main.go -h <host> -p <port> [--dbdir <dbpath>] <server_privatekey_filepath>
2024-09-22 17:09:57 +02:00
```
## Connect to the server
```
2024-09-22 17:15:40 +02:00
ssh [-v] -T -p <port> -i <client_publickey_filepath> <host>
2024-09-22 17:09:57 +02:00
```