brainfck.org
Topics Books Journal Tags Search

2022-08-18

August 18, 2022
journal
  • Making SSH with transparent Session Manager region-aware () 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? ()
    1
    2
    3
    4
    5
    
      Include config.d/home
    
      Host github.com
          HostName github.com
          User git
    
  • Scalable and secure access with SSH ()
Back to Journal


Powered by Hugo, based on the Er theme.
Quick Capture
Bookmarks
Scroll to Top

Quick Capture

What would you like to capture?

No captures yet