Skip to content

Instantly share code, notes, and snippets.

@nagataka
Created March 8, 2014 06:10
Show Gist options
  • Save nagataka/9426127 to your computer and use it in GitHub Desktop.
Save nagataka/9426127 to your computer and use it in GitHub Desktop.
TeraTerm macro for one click login to your EC2 host
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
username = 'ec2-user'
hostname = '54.xxx.xxx.xx'
keyfile = 'C:\PathToYourAuthenticatedKeyFile\xxxxx.pem'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
msg = hostname
strconcat msg ':22 /ssh /auth=publickey /user='
strconcat msg username
strconcat msg ' /keyfile='
strconcat msg keyfile
strconcat msg inputstr
connect msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment