I can log in to my remote using ssh/sftp (without the -b option)
sftp root@192.168.7.2
But when I try
sftp -b commands.tmp root@192.168.7.2
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 ?