Cloudflare tunneling for SSH not working
Hello!
I have been trying for a few weeks now in order to get cloudflare tunnels working, So i am able to access the servers via its domain.
No luck so far. This is also just running the cloudflared client on each machine, Then adding a public hostname for sshm1.example.com and forwarding it to SSH://localhost:22
Any ideas or changes?
43 Replies
The cloudflared agent only needs to exist one client in the network
I would read over this again. https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/
Cloudflare Docs
Set up your first tunnel · Cloudflare Zero Trust docs
To create and manage tunnels, you will need to install and authenticate cloudflared on your origin server. cloudflared is what connects your server to …
They are all different machines and on different ips. So im assuming id have to have one for each machine?
Like different publics?
And that guide there is quite literally what has been done
Yup
and what method from this guide are you using
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 …
Thats not what i asked. Are you using the WARP client or using cloudflare access for public routing
Sorry
Using cloudflare access
send your SSH config, blur any senstive info
Idk if it changes anything but the ssh key i provide the private on the console dashboard
For hetzner
Is this the machine you are using to access the others via SSH
Oh no. Thats the ssh config on the server im trying to access
Im using mobaxterm for my terminal
is it windows or linux
server is linux and desktop is windows
ok, open a local terminal on Mobaxterm
yup
now type
mkdir .ssh
yup
is cloudflared on this machine?
it needs to be
cloudflared clients installed
And its linked to my organisation
Thats the WARP client
a whole differnt thing
Ah
Cloudflare Docs
Downloads · Cloudflare Zero Trust docs
Cloudflare Tunnel requires the installation of a lightweight server-side daemon, cloudflared, to connect your infrastructure to Cloudflare. If you are …
looking for that 64bit for windows
Just opens and closes really quickly
not sure if its ment to do anything?
run this
winget install --id Cloudflare.cloudflared
And is that in mobaxterm or cmd?
same thing
Alright turns out it was already installed
Also very unrelated but here in the uk we are having a heatwave.
And my room gets incredibly hot
Is there any like danger if the intake air is 38c so 100.4F in my bedroom
@Wagon
I mean it is definitely not optimal
But disks are not just gunna start dropping?
Naw, if anything was to sustain actual damage it would be CPUs
there chilling at 55 idle so
if those start getting above 90c turn da b off
yeah ofc
so after the cloudflared client is installed @Wagon
Add the entry in the docs to your shh config
This
looke for the “connect as a user” section