How can I connect a vpn North to Ubuntu in vps without fail?

when with the terminal connected successfully to nordvpn, vps failed and i should reset vps. How can I connect a vpn North to Ubuntu in vps without fail?