blob: 003f1af84d7108fa165d6907f0c297179922062e [file] [log] [blame]
Amnab10c6e72023-09-25 11:12:35 -04001.TH DSH 1 "September 2023" "Version 1.0" "Distributed Shell"
2.SH NAME
3dsh \- Distributed Shell
4.SH SYNOPSIS
5.B dsh
Amna77e27dc2024-07-24 13:09:40 -04006[OPTIONS]... <PEER_ID>
Amnab10c6e72023-09-25 11:12:35 -04007.SH DESCRIPTION
8\fBdsh\fR is a Distributed Shell program that enables peers to establish connections with other peers in a Distributed Hash Table (DHT) network and execute a binary on the remote target.
Amna77e27dc2024-07-24 13:09:40 -04009
10.B <PEER_ID>
11is the identifiant of the target peer or device in the DHT network with which the connection should be established.
12It is required when not running in listen mode.
Amnab10c6e72023-09-25 11:12:35 -040013.PP
14\fBdsh\fR allows you to:
15.IP
16- Execute commands on remote peers in a DHT network.
Amna77e27dc2024-07-24 13:09:40 -040017
Amnab10c6e72023-09-25 11:12:35 -040018- Establish connections with peers and execute binaries on their side.
Amna77e27dc2024-07-24 13:09:40 -040019
Amnab10c6e72023-09-25 11:12:35 -040020.SH OPTIONS
Amna77e27dc2024-07-24 13:09:40 -040021
Amnab10c6e72023-09-25 11:12:35 -040022.TP
23.B \-h, \-\-help
24Display help information for using \fBdsh\fR.
Amna77e27dc2024-07-24 13:09:40 -040025
Amnab10c6e72023-09-25 11:12:35 -040026.TP
Amna77e27dc2024-07-24 13:09:40 -040027.B \-v, \-\-version
Amnab10c6e72023-09-25 11:12:35 -040028Display the version information of \fBdsh\fR.
Amna77e27dc2024-07-24 13:09:40 -040029
Amnab10c6e72023-09-25 11:12:35 -040030.TP
31.B \-l, \-\-listen
32Run \fBdsh\fR in listen mode, allowing the program to accept incoming network connections and perform network-related tasks on request.
Amna77e27dc2024-07-24 13:09:40 -040033
Amnab10c6e72023-09-25 11:12:35 -040034.TP
Amna77e27dc2024-07-24 13:09:40 -040035.B \-s, \-\-binary \fICOMMAND\fR
36Specify the path to the binary that should be executed on the remote target when a connection is established. The default value is \fI"bash"\fR if not specified.
37
Amnab10c6e72023-09-25 11:12:35 -040038.TP
Amna77e27dc2024-07-24 13:09:40 -040039.B \-b, \-\-bootstrap \fIADDRESS\fR
40Set the bootstrap node.
41
Amnab10c6e72023-09-25 11:12:35 -040042.TP
Amna77e27dc2024-07-24 13:09:40 -040043.B \-t, \-\-turn_host \fIADDRESS\fR
44Define the TURN server host.
45
Amnab10c6e72023-09-25 11:12:35 -040046.TP
Amna77e27dc2024-07-24 13:09:40 -040047.B \-u, \-\-turn_user \fIUSER\fR
48Define the TURN server username.
49
50.TP
51.B \-w, \-\-turn_pass \fISECRET\fR
52Define the TURN server password.
53
54.TP
55.B \-r, \-\-turn_realm \fIREALM\fR
56Specify the TURN server realm.
57
58.TP
59.B \-p, \-\-privateKey \fIFILE\fR
60Provide a private key.
61
62.TP
63.B \-c, \-\-certificate \fIFILE\fR
64Specify the certificate.
65
66.TP
67.B \-d, \-\-configuration \fIFILE\fR
68Define the dnc configuration with a YAML file path.
69
70.TP
71.B \-a, \-\-anonymous
72Activate anonymous connection mode.
73
Amnab10c6e72023-09-25 11:12:35 -040074.SH EXAMPLE
Amna77e27dc2024-07-24 13:09:40 -040075
Amnab10c6e72023-09-25 11:12:35 -040076To connect to a remote peer and specify a custom bootstrap node, binary, and identity file, you can use the following command:
77.PP
78.B
Amna77e27dc2024-07-24 13:09:40 -040079dsh -b <BOOTSTRAP_ADDRESS> -s <COMMAND> -c <FILE.crt> -p <FILE.pem> <PEER_ID>
Amnab10c6e72023-09-25 11:12:35 -040080.SH SEE ALSO
81.PP
Amna77e27dc2024-07-24 13:09:40 -040082.BR dnc (1),
83.BR dhtnet-crtmgr (1),
Amnab10c6e72023-09-25 11:12:35 -040084.BR dshd (1)