Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File "/Library/Python/2.7/site-packages/paramiko/client.py", line 467, in invoke_shell
- chan.update_environment_variables(environment or {})
- AttributeError: 'Channel' object has no attribute 'update_environment_variables'
- def init_connect():
- global tun
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- print "nnAttempting connection to ", device_ip, " via SSH"
- ssh.connect(device_ip,username=username,password=password,timeout=5)
- print "Connection established."
- tun = ssh.invoke_shell()
- output = tun.recv(1000)
- print output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement