Auto download file from sftp
get is a legal sftp command, but can't be used that way. The correct syntax to download filename.tar.gz to your Mac is: sftp user@host:/path/to/filename.tar.gz 29 May 2015 Find out how to script and automate SFTP file transfers in Windows.