2

RSA 公開鍵と DSA 公開鍵を区別するために使用するツールを持っている人はいますか? 2 つの SSH .pub ファイルがあり、それらが RSA か DSA かを知る必要があります。

4

2 に答える 2

1

他の回答で述べたように、ファイルは SSH.COM 形式であるため、openssh 形式に変換し、ファイルを開いてssh-dsaまたはを確認できssh-rsaます。

To convert your SSH.COM key to OpenSSH format use:

ssh-keygen -i -f ssh_key.pub

From the ssh-keygen manpage

 -i   This option will read an unencrypted private (or public) key
      file in SSH2-compatible format and print an OpenSSH
      compatible private (or public) key to stdout.  ssh-keygen
      also reads the `SECSH Public Key File Format'.  This option
      allows importing keys from several commercial SSH
      implementations.
 -f  Specifies the filename of the key file.

ソース: http://landru.uwaterloo.ca/cgi-bin/wiki.pl?OpenSSH_-_SSH.Com_Interoperability

于 2011-05-11T17:53:46.757 に答える
0

ssh-keygen を使用してフィンガープリントを取得し、.pub ファイルから入力できます。

ssh-keygen -lf id_rsa.pub
于 2013-12-27T16:17:40.090 に答える