I want to connect my home ubuntu server with ssh from remote. So i bought static ip address from my provider. But i don't know how to set up it correctly.
I have done something like that in /etc/netplan/50-cloud-init.yaml
network:
version: 2
renderer: networkd
ethernets:
enp0s5:
dhcp4: no
addresses: [<my_ip>/24]
gateway4: <my_ip>
nameservers:
addresses: [8.8.8.8,8.8.4.4]
And after
sudo netplan apply
But it haven't work for me. (Sorry if it is a dumb question)