snap-sync icon indicating copy to clipboard operation
snap-sync copied to clipboard

Unable to log in SSH with password

Open evansan opened this issue 2 years ago • 2 comments

plain SSH works eg. ssh [email protected], rsync also works

snap-sync -c home -r 192.168.1.123
[email protected]'s password: 
[email protected]'s password: 
Exited due to error on line 222.
exit status: 1
command: TARGETS=$($ssh findmnt -n -v -t btrfs -o TARGET --list)
bash line: 0
function name:

evansan avatar Sep 30 '22 00:09 evansan

Are you trying to back up to a Synology device or some other weird embedded linux system? I'm having the same issue with my Synology NAS, and it's because they don't ship util-linux (which provides findmnt). You'll have to either find a way to package/install it yourself or modify the script to not rely on findmnt for target selection. Also, at least with recent versions of Synology DSM, logging in as root won't work either, so you'll have to use the --sudo flag.

It's probably best to just use your own script if you're dealing with weird/locked down hardware.

saucyfox avatar Oct 12 '22 20:10 saucyfox

@saucyfox the target was a laptop with fully updated Arch Linux, the root partition was ext4, and a btrfs external drive mounted under /mnt

evansan avatar Oct 23 '22 05:10 evansan