brainfck.org
Topics Books Journal Tags
2022-08-18

18 Aug 2022 | tags: [ journal ]

  • Making SSH with transparent Session Manager region-aware (SSH) In .ssh/config:

    1
    2
    3
    
      host i-*.* mi-*.*
          ProxyCommand bash -c "aws ssm start-session --target $(echo %h|cut -d'.' -f1) --region $(echo %h|/usr/bin/cut -d'.' -f2) --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"host i-* mi-*
          ProxyCommand bash -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
    

    and then use:

    1
    
        ssh ec2-user@i-0456ac191f9f975ec.eu-west-1
    
  • Is there a way for one SSH config file to include another one? (SSH)

    1
    2
    3
    4
    5
    
      Include config.d/home
    
      Host github.com
          HostName github.com
          User git
    
  • Scalable and secure access with SSH (SSH)

back to top

prev post next post



Powered by Hugo, based on the Er theme. 2009-2023 Victor Dorneanu - All rights reserved