Guest User

Untitled

a guest
Aug 30th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;; settings
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. username = 'usernamme'
  5. password = 'password'
  6. hostname = '192.168.0.1:9999'
  7. keyfile = '"C:\xxxxxxxxxx\id_rsa.ppk"'
  8. inifile = '"C:\Program Files (x86)\teraterm\TERATERM.INI"'
  9. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  10.  
  11. cmd = ''
  12. strconcat cmd hostname
  13. strconcat cmd ' /ssh /2 /auth=publickey /user='
  14. strconcat cmd username
  15. strconcat cmd ' /passwd='
  16. strconcat cmd password
  17. strconcat cmd ' /keyfile='
  18. strconcat cmd keyfile
  19. strconcat cmd ' /f='
  20. strconcat cmd inifile
  21. strconcat cmd inputstr
  22.  
  23. connect cmd
Add Comment
Please, Sign In to add comment