I can log in to my remote using ssh/sftp (without the -b option)
sftp [email protected]
But when I try
sftp -b commands.tmp [email protected]
I get
Permission denied (publickey,password).
Couldn't read packet: Connection reset by peer
Commands.tmp looks like this
ls
exit
Anything I am missing here ?