>>>dns_node = [i for i in conn.list_nodes() if i.uuid == 'xxxxxxxxxxxxxxxxxxxxxxx07xxxxxxxxxx']
>>>try_script = 'path/to/somefile.py'
>>>dns_file = FileDeployment(try_script, target='/home/ec2-user')
>>>ssh_client = SSHClient(dns_node[0].public_ip[0], username='ec2-user', key=os.path.expanduser("~/.ssh/id_rsa"))
>>>dns_file.run(dns_node, ssh_client)
할당 된 이러한 각 변수는 적절한 유형으로 이해되는 것을 보여줍니다. 나는이 때, 나는 다음을 얻을 :libcloud FileDeployment SSHClient._transport is NoneType
dns_node :
`[<Node: uuid=xxxxxxxxxxxxxxxxxxxxxxx, name=ec2_node1, state=0, public_ips=['xx.xxx.xxx.xx'], provider=Amazon EC2 ...>]`
dns_file :
<libcloud.compute.deployment.FileDeployment object at 0x10d58de50>
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/ec2-user/Envs/libcloud/lib/python2.7/site-packages/libcloud/compute/deployment.py", line 111, in run contents=content) File "/Users/ec2-user/Envs/libcloud/lib/python2.7/site-packages/libcloud/compute/ssh.py", line 174, in put sftp = self.client.open_sftp() File "/Users/ec2-user/Envs/libcloud/lib/python2.7/site-packages/paramiko/client.py", line 414, in open_sftp return self._transport.open_sftp_client() AttributeError: 'NoneType' object has no attribute 'open_sftp_client'
이 내가 상기 목적을 위해 무엇을 가지고
ssh_client :
`<libcloud.compute.ssh.ParamikoSSHClient object at 0x10d55e950>`
ssh_client.connect :
<bound method ParamikoSSHClient.connect of <libcloud.compute.ssh.ParamikoSSHClient object at 0x10d55e950>>
나는 무엇을 놓치고?