文書の過去の版を表示しています。
クライアント側で公開鍵,秘密鍵の作成を行う.
$ sshkey-gen -t ed25519 -C ""
Generating public/private ed25519 key pair. Enter file in which to save the key (/home/michiya/.ssh/id_ed25519): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_ed25519. Your public key has been saved in /home/user/.ssh/id_ed25519.pub. The key fingerprint is: SHA256:**************************** The key's randomart image is: +--[ED25519 256]--+ ******************* ******************* ******************* ******************* ******************* ******************* ******************* ******************* +----[SHA256]-----+
パスワードを指定しない場合,そのままエンターを押す.
-Cを指定しない場合は,コメントとして公開鍵にuser@hostnameが記載されるため,気になる場合は-C ““でコメントを空白を指定することで記載されない.
注意点
サーバ側がパスワード認証を許可する必要性があり,パスワード漏洩による危険性の回避という意味ではあまり意味がない.
デメリット