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.security.ssh > PSCP hangs with wrong password
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

PSCP hangs with wrong password

Réponse
 
LinkBack Outils de la discussion
Vieux 05/08/2008, 20h39   #1
natambu@obleton.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PSCP hangs with wrong password

I am writting a script that will download file from another host and
run as a scheduled task on my windows 2003 server. I would the script
to notify me when there are problems.

For testing the notification when the script fails, I am running the
script with an invalid password and it just hangs there after the
password fails. I would like to just return a status code to tell me
that it failed, but the only way to stop the job is to hit Crtl-C. Is
there a way around this?

See Below, If I don't use Crtl-C it will stay at "disconnected"
forever.. Thanks.

U:\>pscp -scp -v -batch -pw XXXXX mpsftptest@tools:* .
Looking up host "tools"
Connecting to 192.168.1.7 port 22
Server version: SSH-2.0-OpenSSH_3.5p1
We claim version: SSH-2.0-PuTTY_Release_0.60
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 1024 e1:38:f5:d2:6f:fd:ee:92:66:d0:5b:7a:86:32:bd:de
Initialised AES-256 CBC client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 CBC server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "mpsftptest".
Keyboard-interactive authentication refused
Sent password
Access denied
Access denied
Disconnected: Unable to authenticate
^C
U:\>

  Réponse avec citation
Vieux 05/08/2008, 21h16   #2
Jacob Nevins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PSCP hangs with wrong password

natambu@obleton.com <natambu@gmail.com> writes:
>For testing the notification when the script fails, I am running the
>script with an invalid password and it just hangs there after the
>password fails. I would like to just return a status code to tell me
>that it failed, but the only way to stop the job is to hit Crtl-C.


I'm afraid this is a known bug in 0.60.
<http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-psftp-fail-hang.html>

It's fixed in the nightly development snapshots, and should be fixed in
the next release, whenever that happens.

>Is there a way around this?


Not that I know of, other than using a snapshot version.
  Réponse avec citation
Vieux 05/08/2008, 21h58   #3
natambu@obleton.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PSCP hangs with wrong password

On Aug 5, 1:16pm, Jacob Nevins <jac...@chiark.greenend.org.uk> wrote:
> nata...@obleton.com <nata...@gmail.com> writes:
> >For testing the notification when the script fails, I am running the
> >script with an invalid password and it just hangs there after the
> >password fails. I would like to just return a status code to tell me
> >that it failed, but the only way to stop the job is to hit Crtl-C.

>
> I'm afraid this is a known bug in 0.60.
> <http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-psftp...>
>
> It's fixed in the nightly development snapshots, and should be fixed in
> the next release, whenever that happens.
>
> >Is there a way around this?

>
> Not that I know of, other than using a snapshot version.



Thank you. I will use the snapshot version for now.
  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 15h45.


Édité par : vBulletin®
Copyright ©2000 - 2009, 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,16112 seconds with 11 queries