How to SSH into Linode server using domain behind Cloudflare
If your site is hosted behind Cloudflare it looks like one option is to set up a subdomain (ssh.mydomain.com for example), and disable HTTP proxying on that subdomain alone. This solution is outlined here:
Here are some other resources that may help you with setting this up:
Alternatively, if you're hoping to set this up as a way to make logging in to your server easier, you could also set up an alias in your bash profile (if using bash). For example, you could add an alias like this:
alias sshmydomain='ssh [email protected]'
So that if you type
sshmydomain into your terminal, it'll run the ssh command to log you in.
Lastly, there's also an option that uses
cloudflared, which is a "lightweight command line tool published by Cloudflare that will proxy traffic from your device to the server over SSH."