PuTTY

日本語対応かつ putty.ini を使用する PuTTY のバイナリを落とす.「PuTTY で ISO 2022 による日本語入力・表示を可能にするパッチ」や「PuTTY を INIファイル対応にするパッチ」などが既に当たっている「ごった煮版」のバイナリがよさそう.

最低限の設定として,putty.ini を使用するために putty_sample.ini を putty.ini にファイル名変更,その後,無通信状態で勝手に切断されないように「接続>セッションをアクティブに保つための null パケットの送信>Keepalives 間の秒数」を 300 くらいに変更して Default Settings を上書き保存しておくと便利だろう.

suga's RandomNote - putty によると,cmd.exe から plink.exe を実行すると putty.exe に渡せるコマンドラインオプションが分かるようだ.

D:\bin\PuTTY>plink
PuTTY Link: command-line connection utility
Release 0-58-JP_Y-2005-05-20
Usage: plink [options] [user@]host [command]
       ("host" can also be a PuTTY saved session name)
Options:
  -V        print version information and exit
  -pgpfp    print PGP key fingerprints and exit
  -v        show verbose messages
  -load sessname  Load settings from saved session
  -ssh -telnet -rlogin -raw
            force use of a particular protocol
  -P port   connect to specified port
  -l user   connect with specified username
  -batch    disable all interactive prompts
The following options only apply to SSH connections:
  -pw passw login with specified password
  -D [listen-IP:]listen-port
            Dynamic SOCKS-based port forwarding
  -L [listen-IP:]listen-port:host:port
            Forward local port to remote address
  -R [listen-IP:]listen-port:host:port
            Forward remote port to local address
  -X -x     enable / disable X11 forwarding
  -A -a     enable / disable agent forwarding
  -t -T     enable / disable pty allocation
  -1 -2     force use of particular protocol version
  -4 -6     force use of IPv4 or IPv6
  -C        enable compression
  -i key    private key file for authentication
  -m file   read remote command(s) from file
  -s        remote command is an SSH subsystem (SSH-2 only)
  -N        don't start a shell/command (SSH-2 only)

-load オプションでセッション名を指定して

putty.exe -load セッション名 -l ログイン名

のように起動するといいかもしれない.