How to customize Droplet Console port to survive package update
complete
T
Tzvi Edelman
If we modify
/etc/systemd/system/droplet-agent.service
as you suggest to use a different sshd port number, what will happen to our changes when you update the package? IOW, how will our changes survive the package update?
Hazel Virdó
complete
Hazel Virdó
Hi there! For most cases, you won't need to modify the service file; setting the port in your
sshd_config
will be enough, and that will persist through package updates:> By default, the Droplet Console will connect on the first port defined in the Droplet’s SSH daemon configuration, /etc/ssh/sshd_config. If you launch sshd with a different configuration file, or if you define multiple ports in that file and want to use one other than the first, you need to update the service file for the Droplet agent.
If you have a very special case where you do need to configure the port in the service file, it will likely be overridden with updates.