Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 707 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 707 Bytes

sshautomate

autologin your server when you use jumpers

Usage

  1. you need to install shyml: shyaml
  2. download automate.sh and session.yaml
  3. edit session.yaml,filling your jumper info and server info
  4. run: ./automate.sh myserver

Support MFA

  • support google MFA
  • you need to clone the repo: google-authenticator and modify the secret.json file which contain your MFA factor and user name
  • when you have content in sessdion.yaml
my_jump:
  sshlogin: "ssh -p 2222 root@myjumpserverip"
  automate:
    - {expect: OTP, send: ""}

automate.sh will calculate the OTP code and send to the jump server