Hardware: VPS bought online ( Contabo ) YunoHost version: 11.1.0.2 (stable) I have access to my server : Through SSH and browser Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
hi!
im trying to sync a directory from my machine to my yunohost servers but, with either scp or rsync i always get the same error:
ssh: connect to host mms.nohost.me port 22: Connection refused
the port is present and open in the firewall section.
[WARNING] There’s been a suspiciously high number of authentication failures recently. You may want to make sure that fail2ban is running and is correctly configured, or use a custom port for SSH as explained in Security | Yunohost Documentation.
i did it anyway, but a couple of warnings came up:
Info: Saving the new configuration...
Success! Configuration updated for 'ssh'
Success! Configuration updated for 'fail2ban'
Warning: Job for ssh.service failed because the control process exited with error code.
Warning: See "systemctl status ssh.service" and "journalctl -xe" for details.
Error: Could not run script: /usr/share/yunohost/hooks/conf_regen/03-ssh
Warning: Some firewall rule commands have failed. More info in log.
Success! Config updated as expected
Now you 're locked out of your server. I don’t know if you have an emergency access on your vps, that would be helpful to restore the port to 22, restart sshd. Or you can try a terminal app on yunohost.
After you get a working 22 port, change it using Security | Yunohost Documentation
Test it and close port 22