ユーザ用ツール

サイト用ツール


ubuntu-server-18-04:sshd

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ubuntu-server-18-04:sshd [2019/08/26 17:00]
admin [インストール環境]
ubuntu-server-18-04:sshd [2020/04/09 20:44] (現在)
admin [ログイン用公開鍵の設置]
行 81: 行 81:
 鍵長が短くても良い場合は "-b 4096" は不要。 鍵長が短くても良い場合は "-b 4096" は不要。
 <code> <code>
-$ ssh-keygen -t rsa -b 4096 -f ./ssh_key+$ ssh-keygen -t rsa -b 4096 -C "Comment of Key" -f ./ssh_key
 </code> </code>
  
行 94: 行 94:
 $ cd ~/ $ cd ~/
 $ mkdir ./.ssh $ mkdir ./.ssh
-$ cat ./id_rsa.pub >> ./.ssh/authorized_keys+$ cat ./id_rsa.pub >> ~/.ssh/authorized_keys
 </code> </code>
  
ubuntu-server-18-04/sshd.1566806432.txt.gz · 最終更新: 2019/08/26 17:00 by admin