Skip to content

Instantly share code, notes, and snippets.

@1000k
Created November 28, 2015 05:07
Show Gist options
  • Save 1000k/f50223f0e6b55c2e0b4e to your computer and use it in GitHub Desktop.
Save 1000k/f50223f0e6b55c2e0b4e to your computer and use it in GitHub Desktop.
Auto login script to coreos-vagrant VM.
; ---- config start
HOST = '127.0.0.1:2222'
USERNAME = 'core'
KEYFILE = 'C:\Users\1000k\.vagrant.d\insecure_private_key'
; ---- config end
;cmd = '{HOST} /ssh /2 /auth=publickey /user={USERNAME} /keyfile={KEYFILE}'
cmd = HOST
strconcat cmd ' /ssh /2 /auth=publickey /user='
strconcat cmd USERNAME
strconcat cmd ' /keyfile='
strconcat cmd KEYFILE
strconcat cmd ''
connect cmd
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment