teraterm 起動コマンドの作成
c
@echo off
rem C:\Users\username\Documents\winscp-teraterm.cmd -x !@ !U !P
PATH=C:\Program Files\teraterm;%PATH%
IF "%1"=="-x" GOTO :EOF1
IF "%2"=="-x" GOTO :EOF2
IF "%3"=="-x" GOTO :EOF3
:EOF1
start /b ttermpro.exe %2 /ssh /2/ /auth=password /user=%3 /passwd=%4
GOTO :EOF
:EOF2
start /b ttermpro.exe %3 /ssh /2/ /auth=password /user=%4 /passwd=%5
GOTO :EOF
:EOF3
start /b ttermpro.exe %4 /ssh /2/ /auth=password /user=%5 /passwd=%6
GOTO :EOF
:EOF
winscp の設定
Tools > Preferences...> Integration > Applications
name | value |
---|---|
PuTTY/Terminal client path: | c:\teraterm\ttermpro.cmd -x !@ !U !P |
Remember session password and pass it toPuTTY (SSH) | true |
Automatically open new sessions in PuTTY | true |