Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; settings
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- username = 'usernamme'
- password = 'password'
- hostname = '192.168.0.1:9999'
- keyfile = '"C:\xxxxxxxxxx\id_rsa.ppk"'
- inifile = '"C:\Program Files (x86)\teraterm\TERATERM.INI"'
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- cmd = ''
- strconcat cmd hostname
- strconcat cmd ' /ssh /2 /auth=publickey /user='
- strconcat cmd username
- strconcat cmd ' /passwd='
- strconcat cmd password
- strconcat cmd ' /keyfile='
- strconcat cmd keyfile
- strconcat cmd ' /f='
- strconcat cmd inifile
- strconcat cmd inputstr
- connect cmd
Add Comment
Please, Sign In to add comment