I think you'll find [this](https://github.com/saltstack/salt/blob/develop/tests/integration/states/ssh.py#L161-L192) link useful :smile: