Merge branch 'main' into vnc-readme

This commit is contained in:
Ben Potter 2021-04-21 08:11:48 -04:00
commit 53307fc954
No known key found for this signature in database
GPG Key ID: EB8C3CA53E63B1CB
1 changed files with 4 additions and 4 deletions

View File

@ -5,12 +5,12 @@ A [sample image](https://github.com/cdr/enterprise-images/tree/main/images/vnc)
## To connect
- Option 1 (Web): Create a dev URL on port `6081` and navigate to it
- Option 2 (SSH Tunneling): Use SSH tunneling to expose the VNC server to your local machine. You will need the [coder-cli](https://github.com/cdr/coder-cli), and a VNC client installed on your local machine.
- Option 2 (SSH Tunneling): Use SSH tunneling to expose the VNC server to your local machine. You will need the [coder-cli](https://github.com/cdr/coder-cli) and a VNC client installed on your local machine.
```sh
coder config-ssh
# Forward the remote VNC server to your local machine
ssh -L -N 5990:localhost:5990 coder.[workspace-name]
# You will not see an output if it succeeds
# Now, you can connect your VNC client to localhost:5990
ssh -L -N 5990:localhost:5990 coder.[env-name]
# You will not see any output if it succeeds, but you
# will be able to connect your VNC client to localhost:5990
```