1821639 Members
3431 Online
109633 Solutions
New Discussion юеВ

OpenSSH batch mode

 
Jeff_Traigle
Honored Contributor

OpenSSH batch mode

I'm still digging aroundtrying to find an answer on my own, but thought someone here might have run into this or otherwise know offhand...

We were using OpenSSH v3.8.1p1 (compiled locally) until a couple of weeks ago, when I upgraded to OpenSSH 4.2p1. (Had to use the slightly older versions because we need to compile in the SecurID patches.)

The problem now is that using the batch mode (-b option) for sftp is forcing public key authentication. The previous version did not do this and is causing our developers some trouble. Any ideas how to force password authentication from the sftp client? Or is this even possible with the newer version?
--
Jeff Traigle
2 REPLIES 2
Jeff_Traigle
Honored Contributor

Re: OpenSSH batch mode

Digging through the ssh_config man page, I found the BatchMode option. The default is "no", but the use of the -b option apparently switches it to "yes". Including "-o BatchMode=no" in the sftp command returned the old behavior the developers were expecting.
--
Jeff Traigle
Jeff_Traigle
Honored Contributor

Re: OpenSSH batch mode

And in case anyone else stumbles onto this problem and needs the solution...

the "-o BatchMode=no" needs to go before the -b option on the command line
--
Jeff Traigle