I need to upload a file to a server.
The server uploads using SFTP. After authentication, any command execution is forbidden, so I cannot SSH directly in, I need to get directly into the SFTP subsystem.
ssh -N firstname.lastname@example.org works fine, except I can't SFTP anything.
However, I can do
sftp email@example.com just fine.
Problem: I need to automate this, the authentication is keyboard-interactive, not key-based. I don't own the server I'm connecting to, they simply said "Here's the password, upload the files every week." And nobody over there knows anything about keys or stuff like that.
sftp -b Batch scripts won't allow keyboard interactive auth.
I'm sick of manually uploading the file. They sent the 8-charecter password over unencrypted email and it contains 3 of the same numbers at the end and one dictionary word (ie "Words777") -- lets pretend security really isn't an issue here.
Can I make the SSH key from just the password? Remember, I don't have access to the other server. Can I script this some way? I've attempted using different packages, and even
rsync to do the upload, but they all want to access SSH directly instead of directly getting into the SFTP subsystem.