LoginSignup
44

More than 5 years have passed since last update.

PUTTYで自動接続/ログインする方法

Last updated at Posted at 2015-02-05

Windows用SSHクライアントとして定番の「putty」ですが、普通に起動すると、毎回ユーザーID/パスワードを入力してログインする必要があり、一手間かかります。

自動ログインの方法を調べたところ、puttyのコマンドラインにユーザIDとパスワードを渡して接続することで、ユーザID/Passwordを入力せずに自動ログインが可能です。

1.PUTTYのショートカットを作成する。

2.作成したショートカットを右クリックし、プロパティウィンドウの「ショートカット」タブの「リンク先」の内容を修正し、exeの後ろに以下の内容を入力し、。

 -load 「セッション名」 -l 「ユーザ名」 -pw 「パスワード」

例)セッション名「test_ssh」ユーザー名「root」パスワード「password」の場合

"C:\Program Files (x86)\PuTTY\putty.exe" -load test_ssh -l root -pw password

3.ショートカットをダブルクリックする。

これで自動でログインまでできるようになります。

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
44