Exception when executing <save>

When archiving the config via commit-archive an " [Errno 111] Connection refused" error occurs so I modified the config, also on Synology to get it running without success. Now I’m getting:

Archiving config…
scp://10.19.0.254:/volume2/technics/hosts/server/router/04.vyOS/vyOS - backup Unable to upload “scp://marima:[email protected]/volume2/technics/hosts/server/router/04.vyOS/vyOS - backup/config.boot-vyos.schniek.net.20250502_182849”: EOF during negotiation
run-parts: /etc/commit/post-hooks.d/02vyos-commit-archive exited with return code 1

When using scp directly to upload files to the NAS it is only possible when using scp with -O parameter
To check if it is in general possible to save on the NAS I executed

marima@vyos#
marima@vyos#
marima@vyos# save “scp://user:[email protected]:/volume2/technics/hosts/server/router/vyOS - backup”

Host ‘10.19.0.254’ not found in known hosts.
Fingerprint: 80bb72ccb5b6bcc24709265e254b0786
Do you wish to continue? [y/N] y

WARNING: no ‘known_hosts’ file; create to store keys permanently

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/paramiko/sftp_client.py”, line 130, in init
server_version = self._send_version()
^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/sftp.py”, line 134, in _send_version
t, data = self._read_packet()
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/sftp.py”, line 201, in _read_packet
x = self._read_all(4)
^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/sftp.py”, line 188, in _read_all
raise EOFError()
EOFError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/libexec/vyos/vyos-save-config.py”, line 70, in
remote_save.upload(write_file)
File “/usr/lib/python3/dist-packages/vyos/remote.py”, line 220, in upload
with self._establish() as ssh, ssh.open_sftp() as sftp:
^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/client.py”, line 573, in open_sftp
return self._transport.open_sftp_client()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/transport.py”, line 1142, in open_sftp_client
return SFTPClient.from_transport(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/sftp_client.py”, line 170, in from_transport
return cls(chan)
^^^^^^^^^
File “/usr/lib/python3/dist-packages/paramiko/sftp_client.py”, line 132, in init
raise SSHException(“EOF during negotiation”)
paramiko.ssh_exception.SSHException: EOF during negotiation

marima@vyos#
marima@vyos#
marima@vyos#

My config-management config:

marima@vyos#
marima@vyos#
marima@vyos# sh system config-management
commit-archive {
location “scp://marima:[email protected]/volume2/technics/hosts/server/router/04.vyOS/vyOS - backup”
source-address 10.19.0.1
}
commit-revisions 100
[edit]
marima@vyos#
marima@vyos#
marima@vyos#

marima@vyos# save
Possible completions:

scp://user:passwd@host:/file Save to file on remote machine

marima@vyos#
marima@vyos# set system config-management commit-archive location
Possible completions:

scp://user:passwd@host/path

scp once with and once without colon? What is correct?

marima@vyos:~$
marima@vyos:~$ sh ver
Version: VyOS 2025.04.29-0019-rolling
Release train: current
Release flavor: generic

Built by: [email protected]
Built on: Tue 29 Apr 2025 00:19 UTC
Build UUID: f31d0cbc-3ab8-4f57-8b4e-c5fb1733aedf
Build commit ID: 58a30bd14abea0

Architecture: x86_64
Boot via: installed image
System type: bare metal
Secure Boot: n/a (BIOS)

Hardware vendor: Supermicro
Hardware model: SYS-E300-9D-8CN8TP
Hardware S/N: xxxxxxxxxxxxxx
Hardware UUID: xxxxxxxxxxxxxxxxxxx

Copyright: VyOS maintainers and contributors

marima@vyos:~$
marima@vyos:~$

Tested with another remote server
=> Bad authentication type; allowed types: [‘publickey’]

With
=> PasswordAuthentication yes
in /etc/ssh/sshd_config it works…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.