I\'m working on a script that spins up a fresh EC2 instance with boto and uses the Paramiko SSH client to execute remote commands on the instance. For whatever reason, the Param
Why not use boto.manage.cmdshell instead?
boto.manage.cmdshell
cmd = boto.manage.cmdshell.sshclient_from_instance(instance, key_path, user_name='ec2_user')
(code taken from line 152 in ec2_launch_instance.py)
For available cmdshell commands have a look at the SSHClient class from cmdshell.py.
cmdshell
SSHClient