You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,29 +31,29 @@ Then if you want a daemon to launch `etserver` on every boot:
31
31
32
32
On m1 (Apple Silicon) Macs:
33
33
34
-
```
34
+
```bash
35
35
sudo sed 's:/usr/local/bin/etserver:/opt/homebrew/bin/etserver:g' ../init/launchd/homebrew.mxcl.et.plist | sudo tee /Library/LaunchDaemons/homebrew.mxcl.et.plist
@@ -162,31 +162,32 @@ ET uses ssh for handshaking and encryption, so you must be able to ssh into the
162
162
163
163
ET uses TCP, so you need an open port on your server. By default, it uses 2022.
164
164
165
-
Once you have an open port, the syntax is similar to ssh. Username is default to the current username starting the et process, use `-u` or `user@` to specify a different if necessary.
166
165
167
-
```
166
+
Once you have an open port, the syntax is similar to ssh. Username is default to the current username starting the et process, use `-u` or `user@` to specify a different one if necessary.
167
+
168
+
```bash
168
169
et hostname (etserver running on default port 2022, username is the same as current)
169
170
et user@hostname:8000 (etserver running on port 8000, different user)
170
171
```
171
172
172
173
You can specify a jumphost and the port et is running on jumphost using `--jumphost` and `--jport`. If no `--jport` is given, et will try to connect to default port 2022.
173
174
174
-
```
175
+
```bash
175
176
et hostname -jumphost jump_hostname (etserver running on port 2022 on both hostname and jumphost)
176
177
et hostname:8888 --jumphost jump_hostname --jport 9999
177
178
```
178
179
179
-
Additional arguments that et accept are port forwarding pairs with option `-t "18000:8000, 18001-18003:8001-8003"`, a command to run immediately after the connection is setup through `-c`.
180
+
Additional arguments that et accepts are port forwarding pairs with option `-t "18000:8000, 18001-18003:8001-8003"`, a command to run immediately after the connection is setup through `-c`.
180
181
181
-
Starting from the latest release, et supports parsing both user-specific and system-wide ssh config file.
182
+
Starting from the latest release, et supports parsing both user-specific and system-wide SSH config files.
182
183
The config file is required when your sshd on server/jumphost is listening on a port which is not 22.
183
-
Here is an example ssh config file showing how to setup when
184
+
Here is an example SSH config file showing how to setup when
184
185
185
186
- there is a jumphost in the middle
186
-
- sshd is listening on a port which is not 22
187
-
- connecting to a different username other than current one.
187
+
- sshd is listening on a port that is not 22
188
+
- connecting to a different username other than the current one.
188
189
189
-
```
190
+
```ssh-config
190
191
Host dev
191
192
HostName 192.168.1.1
192
193
User fred
@@ -196,7 +197,7 @@ Host dev
196
197
197
198
With the ssh config file set as above, you can simply call et with
198
199
199
-
```
200
+
```bash
200
201
et dev (etserver running on port 2022 on both hostname and jumphost)
201
202
et dev:8000 -jport 9000 (etserver running on port 9000 on jumphost)
202
203
```
@@ -207,7 +208,7 @@ et dev:8000 -jport 9000 (etserver running on port 9000 on jumphost)
207
208
208
209
To build Eternal Terminal on Mac, the easiest way is to grab dependencies with Homebrew:
Correct the service file (see [#180](https://github.com/MisterTea/EternalTerminal/issues/180) for details).
294
297
295
-
```
298
+
```bash
296
299
sudo sed -ie "s|ExecStart=[^[:space:]]*[[:space:]]|ExecStart=$(which etserver) |" /etc/systemd/system/et.service
297
300
```
298
301
299
-
Alternativelly, open the file /etc/systemd/system/et.service in an editor and correct the `ExectStart=...` line to point to the correct path of the `etserver` binary.
302
+
Alternatively, open the file /etc/systemd/system/et.service in an editor and correct the `ExectStart=...` line to point to the correct path of the `etserver` binary.
0 commit comments