[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] How do I enable debugging when using API
From: |
Michael Gliwinski |
Subject: |
Re: [Fab-user] How do I enable debugging when using API |
Date: |
Tue, 5 Apr 2011 10:59:47 +0100 |
User-agent: |
KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.5.5; x86_64; ; ) |
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
*********************************************************************************