ssh adapter¶
Inmanta module to manage linux ssh configuration.
Features¶
This module supports:
Managing linux ssh configuration per user.
Usage example¶
Here is an example of ssh configuration for user user2
on a remote host via ssh:
import ssh
import mitogen
user = ssh::SSHUser(
host=host,
user="user2",
group="user",
home_dir="/home/user2"
ssh_keys = [
ssh::Key(public_key=std::source("path/to/my_public_key.pub"), name="my_public_key")
]
)
host = std::Host(
name="server",
os=std::linux,
via=mitogen::Sudo(
via=mitogen::Ssh(
name="server",
hostname="1.2.3.4",
port=22,
username="user1",
),
),
)