PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > scp in non-interactive sessions problem?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

scp in non-interactive sessions problem?

Réponse
 
LinkBack Outils de la discussion
Vieux 22/08/2006, 17h23   #1
Jens K S
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut scp in non-interactive sessions problem?

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
  Réponse avec citation
Vieux 24/08/2006, 07h52   #2
aarcee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: scp in non-interactive sessions problem?

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


  Réponse avec citation
Vieux 25/08/2006, 09h13   #3
Jens K S
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: scp in non-interactive sessions problem?

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

>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11232 seconds with 11 queries