error in executing paramiko

while executing this module, i am getting below error
#!/usr/bin/python
#import os
#import sys
#import paramiko
#command1= “cat /etc/fidelity-release”

#ssh = paramiko.SSHClient()
#ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
#ssh.connect("sbanlab1","user","passwd")
#stdin,stdout,stderr = ssh.exex_command(command1)

#ssh.close()

#socket.getaddrinfo(hostname, port, socket.AF_UNSPEC,     socket.SOCK_STREAM):
#socket.gaierror: [Errno -8] Servname not supported for ai_socktype


Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.