Closed bviktor closed 4 years ago
Just installing openssh-server is not enough, if the package was once installed, but later removed, and the rule has been removed manually as well.
openssh-server
dpkg-reconfigure openssh-server won't reinstate the file either. So do something like this:
dpkg-reconfigure openssh-server
if (openssh-server.installed && /etc/ufw/applications.d/openssh-server.exists == false) { apt purge openssh-server apt install openssh-server }
Just installing
openssh-server
is not enough, if the package was once installed, but later removed, and the rule has been removed manually as well.dpkg-reconfigure openssh-server
won't reinstate the file either. So do something like this: