未验证 提交 c8ce380f 编写于 作者: J josephrocca 提交者: GitHub

instanceIp --> username@instanceIp (#1921)

* instanceIp --> username@instanceIp

* [user]@<instance-ip>
Co-authored-by: NAnmol Sethi <hi@nhooyr.io>
Co-authored-by: NAnmol Sethi <hi@nhooyr.io>
上级 c6f054ad
......@@ -134,13 +134,13 @@ Restart `code-server` with (assuming you followed the guide):
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.
```bash
# -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`!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册