Last active
November 12, 2019 12:23
-
-
Save eggist77/baf99476464d1c2f052c3b0385522000 to your computer and use it in GitHub Desktop.
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
;------------------------------------------------------ | |
; @description : ssh for CentOS | |
; @auther : n | |
; @version : 1.1 | |
; @since : 2019/4/9 | |
; @update : 2019/11/12 | |
;------------------------------------------------------ | |
target='192.168.0.1' | |
username='user' | |
password='password' | |
; ssh | |
strconcat target ':22 /ssh /2 /auth=password /user=' | |
strconcat target username | |
strconcat target ' /passwd=' | |
strconcat target password | |
connect target | |
; 5sec pause | |
pause 5 | |
; log | |
logopen 'C:\Logs\teraterm\logname.txt' 0 0 | |
logwrite 'log write start'#13#10 | |
logwrite 'log write end'#13#10 | |
logclose | |
; logout | |
sendln 'exit' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment