From fc1c0a4cfe72b20e8c4839b1dc7d6573c9749794 Mon Sep 17 00:00:00 2001 From: josephrocca <1167575+josephrocca@users.noreply.github.com> Date: Wed, 29 Jul 2020 10:38:36 +1000 Subject: [PATCH 1/2] instanceIp --> username@instanceIp --- doc/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guide.md b/doc/guide.md index 16c33fb43a77..8612c9820fe5 100644 --- a/doc/guide.md +++ b/doc/guide.md @@ -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 +ssh -N -L 8080:127.0.0.1:8080 username@ ``` Now if you access http://127.0.0.1:8080 locally, you should see `code-server`! From b62c15b1d8e490549f7ee026e2fe6d6f61d3f9ff Mon Sep 17 00:00:00 2001 From: josephrocca <1167575+josephrocca@users.noreply.github.com> Date: Tue, 18 Aug 2020 16:51:37 +1000 Subject: [PATCH 2/2] [user]@ Co-authored-by: Anmol Sethi --- doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guide.md b/doc/guide.md index 8612c9820fe5..11a8781c890e 100644 --- a/doc/guide.md +++ b/doc/guide.md @@ -140,7 +140,7 @@ Recommended reading: https://help.ubuntu.com/community/SSH/OpenSSH/PortForwardin ```bash # -N disables executing a remote shell -ssh -N -L 8080:127.0.0.1:8080 username@ +ssh -N -L 8080:127.0.0.1:8080 [user]@ ``` Now if you access http://127.0.0.1:8080 locally, you should see `code-server`!