mirror of https://github.com/coder/code-server.git
Update guide.md (#5614)
Co-authored-by: Mobius <ELXIAGHT@outlook.com> Co-authored-by: Joe Previte <jjprevite@gmail.com>
This commit is contained in:
parent
b562d4a880
commit
b2f043ab41
|
@ -417,20 +417,20 @@ sudo passwd {user} # replace user with your code-server user
|
||||||
|
|
||||||
[![Cloudflared](https://img.shields.io/badge/Cloudflared-E4863B?style=for-the-badge&logo=cloudflare&logoColor=ffffff)](https://github.com/cloudflare/cloudflared)
|
[![Cloudflared](https://img.shields.io/badge/Cloudflared-E4863B?style=for-the-badge&logo=cloudflare&logoColor=ffffff)](https://github.com/cloudflare/cloudflared)
|
||||||
|
|
||||||
1. Install [cloudflared](https://github.com/cloudflare/cloudflared#installing-cloudflared) on your local computer
|
1. Install [cloudflared](https://github.com/cloudflare/cloudflared#installing-cloudflared) on your local computer and remote server
|
||||||
2. Then go to `~/.ssh/config` and add the following:
|
2. Then go to `~/.ssh/config` and add the following on your local computer:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
Host *.trycloudflare.com
|
Host *.trycloudflare.com
|
||||||
HostName %h
|
HostName %h
|
||||||
User root
|
User user
|
||||||
Port 22
|
Port 22
|
||||||
ProxyCommand "cloudflared location" access ssh --hostname %h
|
ProxyCommand "cloudflared location" access ssh --hostname %h
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Run `cloudflared tunnel --url ssh://localhost:22` on the remote server
|
3. Run `cloudflared tunnel --url ssh://localhost:22` on the remote server
|
||||||
|
|
||||||
4. Finally on VS Code or any IDE that supports SSH, run `ssh coder@https://your-link.trycloudflare.com` or `ssh coder@your-link.trycloudflare.com`
|
4. Finally on VS Code or any IDE that supports SSH, run `ssh user@https://your-link.trycloudflare.com` or `ssh user@your-link.trycloudflare.com`
|
||||||
|
|
||||||
### Option 2: ngrok tunnel
|
### Option 2: ngrok tunnel
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue