Python invoke
tasks for SSH activities.
Runs a command on a host via SSH. For example, running ls -la
on www.foo.com
as user bob
:
$ invoke ssh www.foo.com "ls -la" --user bob
Default options for this task may be set within the ssh
configuration context.
Removes a SSH host key from a user's known hosts. For example, removing the host key for www.foo.com
:
$ invoke ssh_hostkey_remove www.foo.com
Default options for this task may be set within the ssh_hostkey
configuration context.