I'd like to connect and upload a MySQL dump file via terminal using SFTP or SCP to my remote server using my SSH config file. According to the documentation I've found, I should be able to do this:
sftp -F db.sql.gz webost@staging2.example.com /tmp
I have also tried the alias in my config:
sftp -F db.sql.gz myalias /tmp
When I do the two above, I simply get a print-out of possible commands, -F being one of them.
I can already connect via SSH using the shortcut in my local config just fine so I know that works:
ssh myalias
Note: I am connecting using a private/public key pair so I never need to enter a password. The key pair does have a passphrase associated with it but OS X Keychain remembered that the first time I connected.
So I am not sure what I am doing wrong?