Score:1

I swapped to cloudflare for free SSL certs, how do I SSH?

md flag

I am a novice, just running a personal web server for the first time using word press. Main goal just doing it as a hobby and learning the correct way to secure things.

Ubuntu 22.10

I've got a couple of questions about SSH.

I set up a SSL cert through Cloudflare which is now using their name servers and due to this my domain names IP is pointed at them. I know I can SSH directly to my machine via IP but it was nice typing the domain name to reach the same IP, which I guess you could say is now more secure anyway, even if it is just 'security by obscurity' which isn't really that good in the cyber security world.

But I want to know if there something I can do to fix this? Perhaps on Cloudflares end there's settings I can do to reroute the SSH protocol to the right IP.

My other questions are:

  • what's some things I should be doing with SSH to make it more secure? E.G. Changing the default port?
  • What is the difference between SSH and SSHD, I notice my server has configs for both yet systemctl status mentions ssh is running and sshd.service could not be found.

Appreciate the responses, cheers for your time!

EDIT: Striked out additional questions. Found my answer with their documentation: https://developers.cloudflare.com/cloudflare-one/policies/filtering/network-policies/ssh-logging/

David avatar
cn flag
Does Cloudflare have any config and or usage support.
Silently avatar
md flag
@David Cloudflare does have quite the elaborate control panel... I'm also not paying for anything from them it was just a way to get a free SSL cert set up going. Suppose I could try their support to see what they say. Since I had other questions I figured I'd ask here too.
FedKad avatar
cn flag
Ssh is for client side and sshd is for server side. Obviously Linux systems generally act as both SSH servers and SSH clients. You should modify the ssh config in the system that is used for client and sshd config for the system that is used as server in your case.
Organic Marble avatar
us flag
One question per post, please.
Silently avatar
md flag
@OrganicMarble Apologies - I quickly realised how inconvenient it was to ask multiple questions, seeing as this website has a Question->Answer format...
Score:1
md flag

Cloudflare SSH using domain name requires you to set up proxy for it. Their documentation is here.

Thanks @FedKad for explaining to me that SSH config is client related and SSHD config is for server side which is what I need to edit to change default listening port.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.