I am attempting to copy from my Synology to my MacOS desktop (hostname is bethel) as a secondary backup destination. The following -copy command prompts “Enter SSH password”, even though .duplicacy/preferences is configured with an ssh keyfile (the private keyfile has no password set).
Command:
tom@synology:/volume1/zz_backups$ ~/bin/duplicacy -d -log copy -from synology -to bethel
Command output:
2023-05-27 09:12:29.735 INFO STORAGE_SET Source storage set to /volume1/zz_duplicacy-backups
2023-05-27 09:12:29.735 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_SYNOLOGY_PASSWORD
2023-05-27 09:12:29.735 DEBUG PASSWORD_PREFERENCE Reading password from preferences
2023-05-27 09:12:29.928 TRACE CONFIG_ITERATIONS Using 16384 iterations for key derivation
2023-05-27 09:12:29.953 DEBUG STORAGE_NESTING Chunk read levels: [1], write level: 1
2023-05-27 09:12:29.965 INFO CONFIG_INFO Compression level: 100
2023-05-27 09:12:29.966 INFO CONFIG_INFO Average chunk size: 4194304
2023-05-27 09:12:29.966 INFO CONFIG_INFO Maximum chunk size: 16777216
2023-05-27 09:12:29.966 INFO CONFIG_INFO Minimum chunk size: 1048576
2023-05-27 09:12:29.966 INFO CONFIG_INFO Chunk seed: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-05-27 09:12:29.966 TRACE CONFIG_INFO Hash key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-05-27 09:12:29.966 TRACE CONFIG_INFO ID key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-05-27 09:12:29.966 TRACE CONFIG_INFO File chunks are encrypted
2023-05-27 09:12:29.966 TRACE CONFIG_INFO Metadata chunks are encrypted
2023-05-27 09:12:30.133 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_SYNOLOGY_PASSWORD
2023-05-27 09:12:30.133 DEBUG PASSWORD_PREFERENCE Reading password from preferences
2023-05-27 09:12:30.133 INFO STORAGE_SET Destination storage set to sftp://tom@bethel//Volumes/exFAT/duplicacy
2023-05-27 09:12:30.133 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_BETHEL_SSH_KEY_FILE
2023-05-27 09:12:30.133 DEBUG PASSWORD_PREFERENCE Reading ssh_key_file from preferences
2023-05-27 09:12:30.200 DEBUG SSH_PUBLICKEY Attempting public key authentication
2023-05-27 09:12:30.200 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_BETHEL_SSH_KEY_FILE
2023-05-27 09:12:30.201 DEBUG PASSWORD_PREFERENCE Reading ssh_key_file from preferences
2023-05-27 09:12:30.247 DEBUG SSH_PASSWORD Attempting password login
2023-05-27 09:12:30.247 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_BETHEL_SSH_PASSWORD
2023-05-27 09:12:30.247 DEBUG KEYRING_GET Failed to get the value from the keyring: keyring/dbus: Error connecting to dbus session, not registering SecretService provider: exec: "dbus-launch": executable file not found in $PATH
Enter SSH password:
Adding -background
to the command supresses the password prompt; however, it fails with a ssh handshake error:
Command:
tom@synology:/volume1/zz_backups$ ~/bin/duplicacy -d -background -log copy -from synology -to bethel
Command output:
2023-05-27 09:24:13.871 INFO STORAGE_SET Source storage set to /volume1/zz_duplicacy-backups
2023-05-27 09:24:13.871 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_SYNOLOGY_PASSWORD
2023-05-27 09:24:13.871 DEBUG PASSWORD_PREFERENCE Reading password from preferences
2023-05-27 09:24:14.013 TRACE CONFIG_ITERATIONS Using 16384 iterations for key derivation
2023-05-27 09:24:14.031 DEBUG STORAGE_NESTING Chunk read levels: [1], write level: 1
2023-05-27 09:24:14.032 INFO CONFIG_INFO Compression level: 100
2023-05-27 09:24:14.032 INFO CONFIG_INFO Average chunk size: 4194304
2023-05-27 09:24:14.032 INFO CONFIG_INFO Maximum chunk size: 16777216
2023-05-27 09:24:14.032 INFO CONFIG_INFO Minimum chunk size: 1048576
2023-05-27 09:24:14.032 INFO CONFIG_INFO Chunk seed: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-05-27 09:24:14.032 TRACE CONFIG_INFO Hash key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-05-27 09:24:14.032 TRACE CONFIG_INFO ID key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2023-05-27 09:24:14.032 TRACE CONFIG_INFO File chunks are encrypted
2023-05-27 09:24:14.032 TRACE CONFIG_INFO Metadata chunks are encrypted
2023-05-27 09:24:14.033 INFO STORAGE_SET Destination storage set to sftp://tom@bethel//Volumes/exFAT/duplicacy
2023-05-27 09:24:14.034 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_BETHEL_SSH_KEY_FILE
2023-05-27 09:24:14.034 DEBUG PASSWORD_PREFERENCE Reading ssh_key_file from preferences
2023-05-27 09:24:14.034 DEBUG KEYRING_GET Failed to get the value from the keyring: keyring/dbus: Error connecting to dbus session, not registering SecretService provider: exec: "dbus-launch": executable file not found in $PATH
2023-05-27 09:24:14.034 DEBUG KEYRING_GET Failed to get the value from the keyring: keyring/dbus: Error connecting to dbus session, not registering SecretService provider: exec: "dbus-launch": executable file not found in $PATH
2023-05-27 09:24:14.098 ERROR STORAGE_CREATE Failed to load the SFTP storage at sftp://tom@bethel//Volumes/exFAT/duplicacy: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Both ssh & sftp work from the command line:
tom@synology:/volume1/zz_backups$ ssh -i /var/services/homes/tom/.ssh/id_rsa tom@bethel
Last login: Sat May 27 09:07:37 2023 from 10.10.10.15
[@bethel:~] %
tom@synology:/volume1/zz_backups$ sftp -i /var/services/homes/tom/.ssh/id_rsa tom@bethel
Connected to bethel.
sftp>
.duplicacy/preferences:
[
{
"name": "synology",
"id": "synology-zz_backups--synology",
"repository": "",
"storage": "/volume1/zz_duplicacy-backups",
"encrypted": true,
"no_backup": false,
"no_restore": false,
"no_save_password": false,
"nobackup_file": "",
"keys": {
"password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"filters": "",
"exclude_by_attribute": false
},
{
"name": "bethel",
"id": "synology-zz_backups--bethel",
"repository": "",
"storage": "sftp://tom@bethel//Volumes/exFAT/duplicacy",
"encrypted": true,
"no_backup": false,
"no_restore": false,
"no_save_password": false,
"nobackup_file": "",
"keys": {
"password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"ssh_key_file": "/var/services/homes/tom/.ssh/id_rsa"
},
"filters": "",
"exclude_by_attribute": false
}
]