LoginSignup
6
5

More than 5 years have passed since last update.

WinSCPからTeratermを起動する。

Last updated at Posted at 2014-03-14

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
6
5
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5