fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] How do I enable debugging when using API


From: Mohamed Lrhazi
Subject: Re: [Fab-user] How do I enable debugging when using API
Date: Tue, 5 Apr 2011 08:38:31 -0400

Thanks a lot Michael. I am getting an auth issue, but cant see what
could be causing it :

Note that I did set my password in the connect function call.

/opt/ActivePython-2.6/lib/python2.6/site-packages/pycrypto-2.3-py2.6-linux-x86_64.egg/Crypto/Util/randpool.py:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which
is BROKEN in older releases.  See
http://www.pycrypto.org/randpool-broken
DEBUG:paramiko.transport:starting thread (client mode): 0xba97db50L
INFO:paramiko.transport:Connected (version 2.0, client 3.2.3)
DEBUG:paramiko.transport:kex algos:['diffie-hellman-group1-sha1']
server key:['ssh-dss'] client encrypt:['aes128-cbc', '3des-cbc',
'twofish128-cbc', 'cast128-cbc', 'twofish-cbc', 'blowfish-cbc',
'aes192-cbc', 'aes256-cbc', 'twofish192-cbc', 'twofish256-cbc',
'arcfour'] server encrypt:['aes128-cbc', '3des-cbc', 'twofish128-cbc',
'cast128-cbc', 'twofish-cbc', 'blowfish-cbc', 'aes192-cbc',
'aes256-cbc', 'twofish192-cbc', 'twofish256-cbc', 'arcfour'] client
mac:['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] server
mac:['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] client
compress:['none', 'zlib'] server compress:['none', 'zlib'] client
lang:[''] server lang:[''] kex follows?False
DEBUG:paramiko.transport:Ciphers agreed: local=aes128-cbc, remote=aes128-cbc
DEBUG:paramiko.transport:using kex diffie-hellman-group1-sha1; server
key type ssh-dss; cipher: local aes128-cbc, remote aes128-cbc; mac:
local hmac-sha1, remote hmac-sha1; compression: local none, remote
none
DEBUG:paramiko.transport:Switch to new keys ...
DEBUG:paramiko.transport:Adding ssh-dss host key for uis-limited-2:
8fef8b2b5cec2aa1e73b03a56e933e40
DEBUG:paramiko.transport:userauth is OK
INFO:paramiko.transport:Auth banner: This system is for use by
authorized users only.
....
to the conditions stated in this notice.

DEBUG:paramiko.transport:Authentication type (password) not permitted.
DEBUG:paramiko.transport:Allowed methods: ['keyboard-interactive',
'address@hidden']
INFO:paramiko.transport:Disconnect (code 2): Protocol error: packet 5
in interactive
Traceback (most recent call last):
 File "debugConn.py", line 11, in <module>
   c.connect(host, int(port), user, password='secretContainsDashes')
 File "build/bdist.linux-x86_64/egg/paramiko/client.py", line 327, in connect
 File "build/bdist.linux-x86_64/egg/paramiko/client.py", line 481, in _auth
paramiko.BadAuthenticationType: Bad authentication type
(allowed_types=['keyboard-interactive', 'address@hidden'])

On Tue, Apr 5, 2011 at 5:59 AM, Michael Gliwinski
<address@hidden> wrote:
> On Tuesday 05 Apr 2011 03:25:15 Mohamed Lrhazi wrote:
>> I have a couple of hosts (mostly Solaris 8/sparc, I think) with which
>> fabic prompts over and over for the password, but from command line,
>> with a standard  redhat ssh client, I login fine.
>>
>> how can I debug what the problem is? thanks a lot.
>
> Try putting this in a standalone script and run it, this should tell you
> what's going on, else paste the output here.
>
>
> import logging
> import paramiko as ssh
> from fabric import network, state
> from fabric.api import run
>
> logging.basicConfig(level=logging.DEBUG)
>
> user, host, port = network.interpret_host_string('address@hidden')
> c = ssh.SSHClient()
> c.set_missing_host_key_policy(ssh.AutoAddPolicy())
> c.connect(host, port, user, password='yourpass')
>
> key = network.join_host_strings(user, host, port)
> state.connections[key] = c
> run('true')
>
>
> --
> Michael Gliwinski
> Henderson Group Information Services
> 9-11 Hightown Avenue, Newtownabby, BT36 4RT
> Phone: 028 9034 3319
>
> **********************************************************************************************
> The information in this email is confidential and may be legally privileged.  
> It is intended solely for the addressee and access to the email by anyone 
> else is unauthorised.
> If you are not the intended recipient, any disclosure, copying, distribution 
> or any action taken or omitted to be taken in reliance on it, is prohibited 
> and may be unlawful.
> When addressed to our clients, any opinions or advice contained in this 
> e-mail are subject to the terms and conditions expressed  in the governing 
> client engagement leter or contract.
> If you have received this email in error please notify address@hidden
>
> John Henderson (Holdings) Ltd
> Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern 
> Ireland, BT36 4RT.
> Registered in Northern Ireland
> Registration Number NI010588
> Vat No.: 814 6399 12
> *********************************************************************************
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]