2009-05-27 5 views

答えて

23

「のssh-keygenは(1)」:

 
For RSA1 keys, there is also a comment field in the key file that is only for 
convenience to the user to help identify the key. The comment can tell what the 
key is for, or whatever is useful. The comment is initialized to “[email protected]” 
when the key is created, but can be changed using the -c option. 
… 
-C comment 
     Provides a new comment. 

-c  Requests changing the comment in the private and public key files. This 
     operation is only supported for RSA1 keys. The program will prompt for 
     the file containing the private keys, for the passphrase if the key has 
     one, and for the new comment. 

それで、あなたは何が好きコメントテキストを提供するために、-C "$desiredcommenttext"を使用してキーを作成します。または既存のキーの場合は、-cオプションを使用してコメントを変更します。

6

はい!それはまったく必要ではありませんが、どこから来たのかを覚えやすくするために任意に追加されています。あなたはそれを編集したい場合は、単にターミナルセッションとタイプを開きます。

$ nano ~/.ssh/id_rsa.pub 

は(ダブル等号の後)ラインの端部を削除します。 manページから

+1

データファイルを直接ハッキングするのではなく、変更する可能性があるため、正式なツールのユーザーインターフェイスを使用することをお勧めします。 – bignose

+0

@bignoseそれは適切なコマンドを知っていると思いますか? – Nuzzolilo

関連する問題