差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
linux:passwords_and_key_sseahorse [2019/01/23 22:56] – [鍵のインポート] ともやん | linux:passwords_and_key_sseahorse [2019/01/24 00:15] – [gnome-keyring-daemon が起動していない場合] ともやん | ||
---|---|---|---|
行 3: | 行 3: | ||
===== seahorse の起動 ===== | ===== seahorse の起動 ===== | ||
[アクティビティ] - [アプリケーションを表示する] - [ユーティリティ] ... \\ | [アクティビティ] - [アプリケーションを表示する] - [ユーティリティ] ... \\ | ||
- | {{: | + | {{: |
「パスワードと鍵」をクリックする。\\ | 「パスワードと鍵」をクリックする。\\ | ||
{{: | {{: | ||
行 27: | 行 27: | ||
===== OpenSSH 鍵の使用 ===== | ===== OpenSSH 鍵の使用 ===== | ||
- | OpenSSH 鍵で認証するサーバーに接続してみる。\\ | + | 端末で |
このサーバーはパスワード認証をオフに設定してある。\\ | このサーバーはパスワード認証をオフに設定してある。\\ | ||
< | < | ||
$ ssh green-sv | $ ssh green-sv | ||
</ | </ | ||
- | {{: | + | {{: |
+ | < | ||
+ | [v] Automatically unlock this key | ||
+ | whenever I'm logged in | ||
+ | ログインするたびに自動的にこのキーの | ||
+ | ロックを解除する | ||
+ | </ | ||
+ | ここで [v] チェックボックスをオンにして [ロックの解除] ボタンを押すと、次回からサーバーへの接続で自動的に OpenSSH 鍵が使われる様になる。\\ | ||
+ | < | ||
+ | $ ssh green-sv | ||
+ | Last login: Wed Jan 23 21:28:11 2019 from 172.16.77.80 | ||
+ | [tomoyan@green-sv ~]$ | ||
+ | </ | ||
+ | |||
+ | ===== FileZilla での OpenSSH 鍵の使用 ===== | ||
+ | FileZilla も自動的に OpenSSH 鍵を利用してくれる様である。\\ | ||
+ | {{: | ||
+ | |||
+ | ===== GNOME での OpenSSH 鍵の使用の仕組み ===== | ||
+ | GNOME や KDE など XDG 互換のデスクトップ環境を使っている場合、以下のディレクトリにある *.desktop ファイルを自動的に起動します。\\ | ||
+ | < | ||
+ | システム全体: | ||
+ | GNOME: | ||
+ | ユーザー個別: | ||
+ | </ | ||
+ | GNOME Keyring は以下の *.desktop ファイルで gnome-keyring-daemon を起動して動作しています。\\ | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | <file autoconf / | ||
+ | Name[ja]=SSH 鍵エージェント | ||
+ | Comment[ja]=GNOME キーリング: | ||
+ | Comment=GNOME Keyring: SSH Agent | ||
+ | Exec=/ | ||
+ | OnlyShowIn=GNOME; | ||
+ | </ | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | <file autoconf / | ||
+ | Name[ja]=シークレットストレージサービス | ||
+ | Comment[ja]=GNOME キーリング: | ||
+ | Comment=GNOME Keyring: Secret Service | ||
+ | Exec=/ | ||
+ | OnlyShowIn=GNOME; | ||
+ | NoDisplay=true | ||
+ | </ | ||
+ | ==== gnome-keyring-daemon が起動していない場合 ==== | ||
+ | 以下のコマンドを実行して起動させる事が出来ます。\\ | ||
+ | < | ||
+ | $ cp / | ||
+ | $ sed -i '/ | ||
+ | $ sed -i '/ | ||
+ | </ | ||
+ | ※ sed で OnlyShowIn という行を削除してユーザー個別の autostart に登録する。\\ | ||
+ | |||
+ | ===== 参考文献 ===== | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ |