new backup job
Description
When I set up a new backup job on a new server, I kept getting errors.
Failed Failed Remote: /etc/ssh/ssh_config: line 54: Bad configuration option: permitrootlogin Remote: /etc/ssh/ssh_config: terminating, 1 bad configuration options Connection closed by remote host. Is borg working
Error log Remote: /etc/ssh/ssh_config: line 54: Bad configuration option: permitrootlogin Remote: /etc/ssh/ssh_config: terminating, 1 bad configuration options Connection closed by remote host. Is borg working on the server?
Activity log Backup failed: job #3878 — Remote: /etc/ssh/ssh_config: line 54: Bad configuration option: permitrootlogin Remote: /etc/ssh/ssh_config: terminating, 1 bad configuration options Connection closed by remote host. Is borg working on the server?
So I went in and compared the SSH with the old ones and saw this. in line 54 PermitRootLogin no
When I commented it out, it worked. I’m not sure if it’s supposed to work even when this is enabled, or if it has to be excluded for the backup to function. In any case, perhaps this helps.
Steps to Reproduce
Make new backup on new server
Installation Type
Docker
BBS Version
2.100.0
Agent Version (if applicable)
2.100.0
Agent OS (if applicable)
None
Relevant Logs
Thanks @theborg72. This one isn't BBS. PermitRootLogin is an option for the SSH server (/etc/ssh/sshd_config), and your new machine had it in /etc/ssh/ssh_config, the SSH client's file. The ssh client refuses to start when its config has an option it doesn't know, so borg can't open the connection. Borg shows the client's complaint with its usual "Remote:" prefix and the "Is borg working on the server?" hint, which is what made it look like a server problem.
Removing the line from ssh_config, as you did, is the fix. If you want root logins blocked, the line belongs in sshd_config. Closing, but reopen if it comes back with a clean ssh_config.