Skip to content

Instantly share code, notes, and snippets.

@takkumattsu
Last active December 18, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takkumattsu/5840393 to your computer and use it in GitHub Desktop.
Save takkumattsu/5840393 to your computer and use it in GitHub Desktop.
TeraTerm Macro for ssh
; ========================================
; File : ssh_login.ttl
; Author : TakkuMattsu
; Description : ssh login
; ========================================
; User Edit
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
username = 'UserName'
hostname = 'HostName'
port = 'port'
keyfile = 'key file path'
passwdfile = 'passfile.dat'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
msg = 'Enter password for user '
strconcat msg username
passwdkey = username
strconcat passwdkey '@'
strconcat passwdkey hostname
getpassword passwdfile passwdkey password
msg = hostname
strconcat msg ':port /ssh /auth=publickey /user='
strconcat msg username
strconcat msg ' /keyfile='
strconcat msg keyfile
strconcat msg ' /passwd="'
strconcat msg password
strconcat msg '"'
connect msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment