Last active
December 18, 2015 20:29
-
-
Save takkumattsu/5840393 to your computer and use it in GitHub Desktop.
TeraTerm Macro for ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ======================================== | |
; 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