sftp -b <batch> refuses to connect

Nancy Merckle nancym at fellspt.charm.net
Fri Jul 1 22:21:54 UTC 2005


On Fri, 1 Jul 2005, Ralf Corsepius wrote:

>> "sftp -b <batch> user at somesite" refuses to connect:
>>
>> # sftp -b upload.ftp user at somesite
>> Permission denied (publickey,password,keyboard-interactive).
>> Couldn't read packet: Connection reset by peer
>>
>> While "sftp user at somesite", i.e. interactively using sftp, works:
>> # sftp user at somesite
>> Connecting to somesite ...
>> Password: ...
>>
>> ssh and scp access to the same site also works.

It looks to me like your keys are out of sync.  You may need to 
update/regenerate them.

If you can sftp into the system, interactively, the only thing left is the 
part that makes it automatic.

Oh, another mistake I frequently make is trying to run a batch file when 
the file isn't in the directory I'm in... but that is probably not the 
case here.

Hope this helps,

Nancy

--------------------------------------------------------------
nancym at charm.net  ..... (future) http://www.charm.net/~nancym/
The Kitties Page  ...........  http://members.aol.com/Mysnats/
My Sister's Karaoke Site ............  http://karaokeklub.com/
--------------------------------------------------------------




More information about the fedora-list mailing list