I am writing python script to login to ssh server using paramiko.
I wrote script below.
#!/usr/bin/python
import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
paramiko.transport.auth_none('sachin')
ssh.connect('localhost', username='sachin', password='abc123')
stdin, stdout, stderr = ssh.exec_command('df -h')
print stdout.readlines()
ssh.close()
Now getting error below
AttributeError: ‘module’ object has no attribute ‘auth_none’
Anyone know why I am getting this error
Thanks !!!
The
paramiko.transportmodule does not contain a nameauth_none, as can be seen from its documentation (and from the error message as well).Maybe you want