Should also work by entering "set sftp:connect-program dbclient" in /root/.lftp/rc
Mmm, not sure about /root though - it should be root's $HOME anyway.
Maybe also "set ssl:verify-certificate no".
edit; No, root's $HOME is /tmp/root - it doesn't sound permanent enough to keep an rc file in it. This should work - edit script in ./lftp.sh and place it in lftp's folder, run it from said folder
[root@kindle opt]# cat lftp.sh
Code:
#!/bin/sh
mkdir -p $HOME/.lftp
cat << 'EOF' > $HOME/.lftp/rc
set sftp:connect-program dbclient
set ssl:verify-certificate no
EOF
./lftp
For the fun of it.
Thanks for this build, baf!