Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception in thread Thread-3:
- Traceback (most recent call last):
- File "C:Python27libthreading.py", line 801, in __bootstrap_inner
- self.run()
- File "C:Python27libsite-packagesparamikoagent.py", line 117, in run
- raise AuthenticationException("Unable to connect to SSH agent")
- privkey = paramiko.RSAKey.from_private_key_file(PrivKeyDirFile, password = PrivKeyPw)
- # Start the client
- client = paramiko.client.SSHClient()
- client.set_missing_host_key_policy(paramiko.client.AutoAddPolicy())
- client.load_system_host_keys()
- client.connect(hostname = Host, username = User, pkey = privkey)
- # get a session
- sshChannel = client.get_transport().open_session()
- # set up the agent request handler to handle agent requests from the server
- paramiko.agent.AgentRequestHandler(sshChannel) # <--UNDOCUMENTED??!!
- # get a shell
- sshChannel.get_pty()
- sshChannel.invoke_shell()
- # SNIP
- sshChannel.send
- ("command-which-invokes-fab-scriptn")
- # error now happens
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement