instanceIp --> username@instanceIp (#1921)

* instanceIp --> username@instanceIp

* [user]@<instance-ip>

Co-authored-by: Anmol Sethi <hi@nhooyr.io>

Co-authored-by: Anmol Sethi <hi@nhooyr.io>
This commit is contained in:
josephrocca 2020-08-21 00:55:03 +10:00 committed by GitHub
parent c6f054ad6f
commit c8ce380f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -134,13 +134,13 @@ Restart `code-server` with (assuming you followed the guide):
systemctl --user restart code-server systemctl --user restart code-server
``` ```
Now forward local port 8080 to `127.0.0.1:8080` on the remote instance. Now forward local port 8080 to `127.0.0.1:8080` on the remote instance by running the following command on your local machine.
Recommended reading: https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding. Recommended reading: https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding.
```bash ```bash
# -N disables executing a remote shell # -N disables executing a remote shell
ssh -N -L 8080:127.0.0.1:8080 <instance-ip> ssh -N -L 8080:127.0.0.1:8080 [user]@<instance-ip>
``` ```
Now if you access http://127.0.0.1:8080 locally, you should see `code-server`! Now if you access http://127.0.0.1:8080 locally, you should see `code-server`!