Is there any possibility for opening sftp connection to remote server and execute sftp command in same line from shell.
Something like this:
sftp firstname.lastname@example.org && put /tmp/test.txt /tmp/
where put is sftp command.
My idea is to put file from local server to the remote server from bash script where only sftp is allowed on the remote server.