Errno -8 Servname not supported when using Paramiko, Python -
i'm trying connect server via ssh python script. i'm trying out paramiko. set public key between client , server don't need password. i'm using following code @ moment:
ssh = paramiko.sshclient() ssh.set_missing_host_key_policy(paramiko.autoaddpolicy()) ssh.connect('192.168.56.102', 'oracle', none, '~/.ssh/id_rsa') stdin, stdout, stderr = ssh.exec_command('ls')
but when running i'm getting error
[errno -8] servname not supported ai_socktype
any help?
this solved adding port number parameter!