I need to copy a file over SFTP to a specific directory. I use LFTP because this connection requires an IP6 mDNS name.
lftp sftp://admin:[email protected] -e "put file.txt; bye"
This works, but the file ends up in /home/admin
I want the file to end up in /home/admin/upload
Can I somehow specify the destination directory? I'd be happy to use an additional command to do so, but it must be scripted with lftp/sftp