thebaselab / codeapp

Building a full-fledged code editor for iPad
https://code.thebaselab.com
MIT License
2.96k stars 204 forks source link

remote ssh using cloudflared tunnel #1133

Open alx-xlx opened 2 months ago

alx-xlx commented 2 months ago

on vsc windows we have to use the following config to connect to my ssh using the cloudflared tunnel

Host pi_remote
    HostName ssh.example.com
    ProxyCommand D:\PATH\cloudflared.exe access ssh --hostname %h
    User pi
    PreferredAuthentications publickey
    IdentityFile "D:/PATH/Data/.ssh/pi_remote_rsa"

How do we do the same in codeapp ??

bummoblizard commented 2 months ago

Currently there is no way to do this as the cloudflared binary does not support iOS.

alx-xlx commented 2 months ago

I found this app called ish and after fidgeting around a little I was able to use ssh using cloudflared tunnel.

I used the following Binary from cloudflared - https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-386

I moved the binary file to /bin, gave it chmod permission, copied my cert.pem to the .cloudflared directory made configuration to the .ssh/config like in the original post above. And I was able to access ssh using tunnels.

I don't know if the same binary can be implemented on codeapp, I tried to move the binary to bin dir but it won't allow.

bummoblizard commented 2 months ago

Thank you for sharing! iSH emulates a x86 environment while Code App runs native binaries compiled for iOS. Unfortunately this means the method doesn't work on our app.