If you’re lazy (like me), try `lftp`. It’s a killer tool for linux download file by sftp and supports scripting.
`lftp sftp://user@host -e "get /remote/file -o /local/file; quit"`
Boom. Done. No manual typing.
`lftp sftp://user@host -e "get /remote/file -o /local/file; quit"`
Boom. Done. No manual typing.
