Paramiko Help

Jon Clements joncle at googlemail.com
Wed Jun 24 23:04:51 CEST 2009


On Jun 24, 10:01 pm, Frank Ruiz <frank.r... at gmail.com> wrote:
> Apologies.. Python newb here.. switching from perl to python.. so
> please forgive if this is a dumb question.
>
> I am using the paramiko module and have some global variables defined.
>
> i.e.
>
> hostname = ' 10.10.10.10'
> sshport = '22'
>
> I am then trying to pass this variable into the client connect method -
>
> client = paramiko.SSHClient()
> client.load_system_host_keys()
> client.connect(hostname, sshport, root)
>
> I also have public key setup between source and destination host, so
> not sure if this will work, but trying to jump one hurtle at at time.
>
> So it seems like the values past to the connect method are taken at
> face value based on the error message I am seeing:
>
> TypeError: an integer is required
>
> Any help is much appreciated.
>
> Thanks!

wild guess: should sshport = 22 (instead of '22')



More information about the Python-list mailing list