How do I use my own downain name for ssh?

I setup an Ubuntu 18.08LTS server on Linode and configured ssh keys and dissabled password logins.

I want to connect my personal domain name to the server so I can log in via ssh using my domain name instead of the IP address assigned to me by Linode. For example, instead of logging into the server like this: "ssh [email protected]", I want to log in like this: "ssh [email protected]".

I'm not sure what this is called so I've not been able to search for it. Can someonone point me in the right direction? Thanks.

P.S. Eventually I want to setu a mail server and use the same domain name. not sure if that changes the answer.

2 Replies

Please setup the DNS record for your domain.
A and AAAA records to point to ipv4 and ipv6 of your linode.

Once that records are setup, you can do a ping
mydomain.com and it should show you the ip address of the linode

Then you can do

ssh me@mydomain.com

hope it helps.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct