Ok, sorry for the confusion. Im using scp in "interactive" mode. Im
using Expect from within an Ada application, so it is not visible in a
terminal, but otherwise it would be like working at a normal terminal.
All I want is wait for the "Password:" So I can send the password using
the Send procedure. But this is where things go wrong.
Any ideas?
thanks
Jens
aarcee wrote:
> It looks like the key hasn't been shared properly. From non-interactive
> i suppose
>
> you would be using public keys.
>
> Try running the below at the destination server
> /usr/local/sbin/sshd -d -p 5000
> and at the source
> ssh -vvv -p 5000 "dest hostname"
>
> You can really trouble shoot with this
>
> Regrds
> RC
>
>
> Jens K S wrote:
>> Hi all im new to the list,
>>
>> Im having a problem when using scp from within an other application and
>> therefore in non-interactive mode. I continue getting:
>>
>> Permission denied, please try again.
>> Permission denied, please try again.
>> Permission denied (publickey,gssapi-with-mic,password).
>>
>> I can connect fine in interactive mode and I haven't send any password
>> yet...I am suspecting that my shell produces some unwanted output for
>> the session. As described in http://www.openssh.com/faq.html#2.9, but
>> running
>>
>> ssh yourhost /usr/bin/true
>>
>> generates no unwanted output?
>>
>> Has anyone had similar problems and how did they solve it? Im running OS
>> X 10.4.x. and bash as default shell.
>>
>> Thanks
>>
>> Jens
>