44
9
Perhaps my google-foo is failing me here... 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 documentation I've found, I should be able to do this:
sftp -F db.sql.gz webost@staging2.example.com /tmp
I have also tired 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.
wow this is perfect, worked great! I am just getting familiar with terminal so this will really come in handy in the future. – Danny Englander – 2012-05-07T15:23:30.103