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:
parent
c6f054ad6f
commit
c8ce380f10
@ -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`!
|
||||||
|
Reference in New Issue
Block a user