Skip to content

Commit b2f043a

Browse files
MöbiusMoiusjsjoeio
authoredOct 7, 2022
Update guide.md (#5614)
Co-authored-by: Mobius <[email protected]> Co-authored-by: Joe Previte <[email protected]>
1 parent b562d4a commit b2f043a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎docs/guide.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -417,20 +417,20 @@ sudo passwd {user} # replace user with your code-server user
417417

418418
[![Cloudflared](https://img.shields.io/badge/Cloudflared-E4863B?style=for-the-badge&logo=cloudflare&logoColor=ffffff)](https://github.com/cloudflare/cloudflared)
419419

420-
1. Install [cloudflared](https://github.com/cloudflare/cloudflared#installing-cloudflared) on your local computer
421-
2. Then go to `~/.ssh/config` and add the following:
420+
1. Install [cloudflared](https://github.com/cloudflare/cloudflared#installing-cloudflared) on your local computer and remote server
421+
2. Then go to `~/.ssh/config` and add the following on your local computer:
422422

423423
```shell
424424
Host *.trycloudflare.com
425425
HostName %h
426-
User root
426+
User user
427427
Port 22
428428
ProxyCommand "cloudflared location" access ssh --hostname %h
429429
```
430430

431431
3. Run `cloudflared tunnel --url ssh://localhost:22` on the remote server
432432

433-
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`
433+
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`
434434

435435
### Option 2: ngrok tunnel
436436

0 commit comments

Comments
 (0)
Please sign in to comment.