This code generates ssh_config from VMware ESXi machine list.
- Add
include
statement in ssh_config as follows
echo "Include ~/.ssh/config.gen" >> ~/.ssh/config
- Run
collect.sh
bash collect.sh
- Verify the generated ssh_config
cat ~/.ssh/config.gen
This code generates ssh_config from VMware ESXi machine list.
include
statement in ssh_config as followsecho "Include ~/.ssh/config.gen" >> ~/.ssh/config
collect.sh
bash collect.sh
cat ~/.ssh/config.gen