Tool
테라 텀(Tera Term) 자동로그인 매크로
senssi
2023. 3. 20. 12:18
;접속용 유저 정보
username = ‘{xxx}'
pw = '{xxx}'
hostname = '{접속 호스트 IP}'
portnum = '{포트넘버}'
;접속 메세지 작성
msg = hostname
strconcat msg ':portnum /ssh /auth=password /user='
strconcat msg username
strconcat msg '/passwd='
strconcat msg pw
;접속
connect msg
;접속 후 유저 정보(인증이 2단계일 경우)
username2 = '{xxx}'
pw2 = '{xxx}'
;유저
waitrecv 'Username:' 9 1
sendln username2
;패스워드
waitregex '.*password'
sendln pw2
;문자열 선택
;callmenu 54011 ; [KanjiCode] Recv: EUC-JP
;callmenu 54111 ; [KanjiCode] Send: EUC-JP
;설정파일을 읽음
;restoresetup 'TERATERM_3.INI'