librelist archives

« back to archive

Re: Question on Paramiko

Re: Question on Paramiko

From:
Sujith S
Date:
2015-03-16 @ 17:07
>
>
> Hi,
>
> I am new to paramiko. I installed paramiko on a windows machine and trying
> to ssh to a router. I am getting the following error
>
>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\esujsom>cd\
>
> C:\>cd Python27
>
> C:\Python27>python.exe ssh.py
> Traceback (most recent call last):
>   File "ssh.py", line 3, in <module>
>     ssh.connect(' 10.126.74.198', username='test', password='test')
>   File
> "C:\Users\esujsom\AppData\Roaming\Python\Python27\site-packages\paramiko\
> client.py", line 237, in connect
>     for (family, socktype, proto, canonname, sockaddr) in
> socket.getaddrinfo(hos
> tname, port, socket.AF_UNSPEC, socket.SOCK_STREAM):
> socket.gaierror: [Errno 11004] getaddrinfo failed
>
> C:\Python27>
>
>
>
> The program I am trying to execute is as given below.
>
> import paramiko
> ssh = paramiko.SSHClient()
> ssh.connect(' 10.126.74.198', username='test', password='test')
>
>
> Can somebody help me to fix this issue ?
>
>
>
>
>
> --
>
> Regards
> Sujith
>
>


-- 

Regards
Sujith