Ok. The problem was with my build of lftp. It couldn't allocate pseudoterminal. I rebuilt it, so please redownload it from
my page.
It works for me like this:
Code:
[root@kindle test]# ./lftp
lftp :~> set sftp:connect-program dbclient
lftp :~> open sftp://baf@10.0.0.1