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!


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -