puttyを使いやすく。puttyのコマンドオプションを活用する。
PuttyはSSHの一般的使い方はもちろん、rshやTelnetでも活躍します。
サーバー選択ダイアログは設定次第で省略できます。
Puttyのコマンドオプションを使います。
Puttyのコマンドオプションは次の通りです。
| -load | load a saved session |
|---|---|
| Selecting a protocol | -ssh, -telnet, -rlogin, -raw |
| -v | increase verbosity |
| -l | specify a login name |
| -L, -R and -D | set up port forwardings |
| -m | read a remote command or script from a file |
| -P | specify a port number |
| -pw | specify a password |
| -agent and -noagent | control use of Pageant for authentication |
| -A and -a | control agent forwarding |
| -X and -x | control X11 forwarding |
| -t and -T | control pseudo-terminal allocation |
| -N | suppress starting a shell or command |
| -nc | make a remote network connection in place of a remote shell or command |
| -C | enable compression |
| -1 and -2 | specify an SSH protocol version |
| -4 and -6 | specify an Internet protocol version |
| -i | specify an SSH private key |
| -pgpfp | display PGP key fingerprints |
ショートカット作り方
ショートカットを作るときに、設定別のショートカットを作れます。
セッション選択を省略できます。CoLinuxログインは、頻繁に使うので、私は飛ばしています。
putty -load "セッション名"
- load は 設定名を書きます。
putty でTelnetできます。
ユーザー名を指定してSSH
もちろんログインするユーザー名と鍵を指定してログインできる。
putty 192.168.10.2 -l takuya_1st -i C:\keys\id_rsa
SSHコマンドとほぼ同じですね。
マニュアルはここ
インストールパスにputty.chmが入ってる。WEBならこれ
3.7 The PuTTY command line
http://the.earth.li/~sgtatham/putty/0.57/htmldoc/Chapter3.html#S3.7
