Installation
On this page
Get started
There are two main ways to get started with sshush
pip3 install sshush
Or you can clone the project and run:
python3 setup.py install
Quick Start
Open $HOME/.ssh/config.yml
:
---
global:
IdentityFile: ~/.ssh/id_ed25519
local:
Hosts:
nas: 192.168.0.42
pihole:
Config:
User: pi
HostName: 192.168.0.2
remote:
Config:
Port: 42022
Hosts:
web1: web.example.org
db: db.example.org
You’re now ready to generate your config.
The result of this configuration is:
$HOME/.ssh/config
:
# Generated by sshush v1.4.0 (/home/ben/.local/bin/sshush)
# From ['config.yml']
# local
Host nas
HostName 192.168.0.42
Host pihole
Config OrderedDict([('User', 'pi')])
HostName 192.168.0.2
# remote
Host web1
Port 42022
HostName web.example.org
Host db
Port 42022
HostName db.example.org
Host *
IdentityFile ~/.ssh/id_ed25519