I can't get SSH working.

Hi, I am trying to get SSH working through a cloudflared tunnel but, I can't get the connection on windows however I was able to get it in the cloud based terminal so I know that the server is configured properly. I don't know if there is a file somewhere on windows I need to edit or something like that. I am running Windows 10 if that helps, and Ubuntu Server 22.04 on a dedicated machine. I followed the docs, so the ubuntu machine is configured correctly, but it is connecting to said machine outside of the cloudflare web terminal is what I am having issues with.
9 Replies
AndrewA
AndrewA•7mo ago
Cloudflare Docs
SSH · Cloudflare Zero Trust docs
The Secure Shell Protocol (SSH) enables users to remotely access devices through the command line. With Cloudflare Zero Trust, you can make your SSH …
Inactive Gaming13
Inactive Gaming13OP•7mo ago
Yes, I have it set up on the server and the web terminal works but, no success on the windows terminal.
AndrewA
AndrewA•7mo ago
Just set it up to test quickly for you. Download cloudflared windows bin if you do not already have it.
Host server.andrewa.co.uk
ProxyCommand C:\Users\Andrew\Downloads\cloudflared-windows-amd64.exe access ssh --hostname %h
Host server.andrewa.co.uk
ProxyCommand C:\Users\Andrew\Downloads\cloudflared-windows-amd64.exe access ssh --hostname %h
Add the above, changing the host and the path to cloudflared as needed
PS C:\Users\Andrew\Downloads> ssh [email protected]
Linux mail.minepos.net 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64

The programs included with the Debian GNU/Linux system are free software;
PS C:\Users\Andrew\Downloads> ssh [email protected]
Linux mail.minepos.net 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64

The programs included with the Debian GNU/Linux system are free software;
This let me SSH in without issue
Inactive Gaming13
Inactive Gaming13OP•7mo ago
Am I meant to run these with a command? I just get not a program or batch file.
AndrewA
AndrewA•7mo ago
What do you mean sorry?
Inactive Gaming13
Inactive Gaming13OP•7mo ago
Am I meant to run this in cmd or, put it into a file?
AndrewA
AndrewA•7mo ago
Host server.andrewa.co.uk
ProxyCommand C:\Users\Andrew\Downloads\cloudflared-windows-amd64.exe access ssh --hostname %h
Host server.andrewa.co.uk
ProxyCommand C:\Users\Andrew\Downloads\cloudflared-windows-amd64.exe access ssh --hostname %h
This goes in to your SSH client config
C:\Users\USERNAME\.ssh\config
C:\Users\USERNAME\.ssh\config
Inactive Gaming13
Inactive Gaming13OP•7mo ago
I have a file called known_hosts, but nothing resembling config. I created config and now it is working, thanks.
AndrewA
AndrewA•7mo ago
No problem at all 🙂
Want results from more Discord servers?
Add your server