1

This used to work just fine until I had to change the server ip.

I can sftp to the server. I can also run a simple python code using paramiko to connect to sftp, and it works ok.

But when I run duplicity, it fails:

Duplicity error: BackendException: ssh connection to SERVER_IP:22 failed
('SERVER_IP', <paramiko.ed25519key.Ed25519Key object at 0x7f8fec54f710>,
paramiko.ed25519key.Ed25519Key object at 0x7f8fec53e4d0>)

I tried editing sshbackend.py, which on my distro is ssh_paramiko_backend.py, as explained here as a possible fix but didn't work.

The exact duplicity command is:

duplicity --full-if-older-than 1M [SOURCE] sftp://[USER]@[SERVER_IP] --volsize 666 --verbosity 8 --allow-source-mismatch

Password is being set on export FTP_PASSWORD=[pass]. I tried also to pass the password in the command, but I got the same error.

root@server:~# ssh -V
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g  1 Mar 2016

root@server:~# duplicity -V
duplicity 0.7.06

root@server:~# python -c "import paramiko; print paramiko.__version__"
2.2.0
rlcabral
  • 183
  • 1
  • 1
  • 6

2 Answers2

0

On destination server

Add the following line to /etc/ssh/sshd_config:

PubkeyAcceptedKeyTypes +ssh-rsa

Then restart sshd

systemctl restart sshd
gobbor
  • 1
  • 1
0

does pexpect+sftp:// work? ..ede/duply.net

ede-duply.net
  • 324
  • 1
  • 4