The security page of the admin guide provides explanations on how to change the SSH port. I found (too late — I already followed the guide…) that there is a setting (security.ssh.port) that seems to do the job when changed.
Is it the new way of doing that?
Thanks
La page Sécurité du guide d’administration explique comment changer le port SSH. J’ai découvert (trop tard — j’avais déjà suivi la procédure manuelle) qu’il y a un setting (security.ssh.port) qui semble faire le boulot automatiquement…
Est-ce la nouvelle méthode à suivre ?
Note that it must be done first, before any other changes to the /etc/ssh/sshd_config file (otherwise no modifications will be done to the file by yunohost settings)
@tituspijean Dans yunohost settings la valeur se modifie avec -v (et non pas -p comme pour la commande SSH)…
Et pour security.fr.md, le texte est aussi en anglais (copier/coller trop rapide ?)
Et je pense qu’il y a une espace en trop à la fin de **For the next SSH connections **, ce qui empêche de mettre en gras (en tout cas, c’est comme ça que GH l’affiche).
If the port has been modified, then also this port needs to be used with SFTP. It took me a while to figure this out because I was not aware (or forgot) that SFTP is using SSH.
I would find it useful to mention this in the doc’s. What do you think?
Does the command sudo yunohost settings set security.ssh.port -v <new_ssh_port_number> from https://yunohost.org/oc/security#modify-the-ssh-portadds a new port, or replace current? Is it possible to add new port keeping default 22 active?
Sorry if this is in man pages, help doesn’t work when restoring a new instance from backup. =((
No, it’s just to understand how this works… To know if the previous one is available after command execution. And to know what to do after another migration between VPS.