Skip to content

Small script to help with ssh to multiple servers over diferent bastions

Notifications You must be signed in to change notification settings

DzeryCZ/ssh-over-bastion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

SSH to multiple servers over bastion

SSH to server over bastion

ssh -i ./path/to/private/certificate -J ubuntu@ip-of-bastion ubuntu@ip-of-server

SSH to multiple servers over bastion

  • Install dependencies
    pip3 install -r ./requirements.txt
  • Given a configuration in config.yaml with structure
    server1:
        ip: 192.168.0.1
        bastion: 212.186.105.45
    serverN:
        ip: 192.168.0.2
        bastion: 212.186.105.45
  • We can use a simple python helper like this
    bastion-ssh.py -i ./path/to/private/certificate -c ./path/to/config/file name-of-server

About

Small script to help with ssh to multiple servers over diferent bastions

Topics

Resources

Stars

Watchers

Forks

Languages