To reproduce:
cpo@LR3.wue3# run show configuration commands | grep commit set system config-management commit-archive location 'scp://test123:test123@172.18.254.201:/config/tftpboot' set system config-management commit-revisions '200'
172.18.254.201 is another VyOS machine of mine
cpo@LR3.wue3# delete interfaces ethernet eth1 disable [edit] cpo@LR3.wue3# commit Archiving config... scp://172.18.254.201:/config/tftpboot Host '172.18.254.201' not found in known hosts. Fingerprint: 824eea64935f70034386a06143f82aa4 Do you wish to continue? [y/N]
Now abort the commit-archive process using Ctrl+C and the stacktrace will pop up:
^CTraceback (most recent call last):
File "<string>", line 1, in <module>
[edit]
cpo@LR3.wue3# File "/usr/lib/python3/dist-packages/vyos/remote.py", line 312, in upload
urlc(urlstring, *args, **kwargs).upload(local_path)
File "/usr/lib/python3/dist-packages/vyos/remote.py", line 205, in upload
with self._establish() as ssh, ssh.open_sftp() as sftp:
File "/usr/lib/python3/dist-packages/vyos/remote.py", line 190, in _establish
ssh.connect(self.hostname, self.port, self.username, self.password, sock=sock)
File "/usr/lib/python3/dist-packages/paramiko/client.py", line 407, in connect
self, server_hostkey_name, server_key
File "/usr/lib/python3/dist-packages/vyos/remote.py", line 60, in missing_host_key
if sys.stdout.isatty() and ask_yes_no('Do you wish to continue?'):
File "/usr/lib/python3/dist-packages/vyos/util.py", line 630, in ask_yes_no
c = input().lower()
KeyboardInterruptThe Ctrl+Csignal should be intercepted by the commit-archive python script