id_rsa.pub 和 id_dba.pub有什么关系?

[复制链接]
查看11 | 回复3 | 2010-10-8 09:31:21 | 显示全部楼层 |阅读模式
公钥只需一个,为什么在LINUX中会出现2个
回复

使用道具 举报

千问 | 2010-10-8 09:31:21 | 显示全部楼层
指的id_dsa.pub吧
回复

使用道具 举报

千问 | 2010-10-8 09:31:21 | 显示全部楼层
DSA和RSA分别是两种算法。
回复

使用道具 举报

千问 | 2010-10-8 09:31:21 | 显示全部楼层
man ssh-keygen
====
ssh-keygen generates, manages and converts authentication keys for ssh(1).ssh-keygen can create RSA keys for use by SSH
protocol version 1 and RSA or DSA keys for use by SSH protocol version 2.The type of key to be generated is specified with
the -t option.

FILES
$HOME/.ssh/identity

Contains the protocol version 1 RSA authentication identity of the user.This file should not be readable by anyone

but the user.It is possible to specify a passphrase when generating the key; that passphrase will be used to

encrypt the private part of this file using 3DES.This file is not automatically accessed by ssh-keygen but it is

offered as the default file for the private key.ssh(1) will read this file when a login attempt is made.
$HOME/.ssh/identity.pub

Contains the protocol version 1 RSA public key for authentication.The contents of this file should be added to

$HOME/.ssh/authorized_keys on all machines where the user wishes to log in using RSA authentication.There is no

need to keep the contents of this file secret.
$HOME/.ssh/id_dsa

Contains the protocol version 2 DSA authentication identity of the user.This file should not be readable by anyone

but the user.It is possible to specify a passphrase when generating the key; that passphrase will be used to

encrypt the private part of this file using 3DES.This file is not automatically accessed by ssh-keygen but it is

offered as the default file for the private key.ssh(1) will read this file when a login attempt is made.
$HOME/.ssh/id_dsa.pub

Contains the protocol version 2 DSA public key for authentication.The contents of this file should be added to

$HOME/.ssh/authorized_keys on all machines where the user wishes to log in using public key authentication.There

is no need to keep the contents of this file secret.
$HOME/.ssh/id_rsa

Contains the protocol version 2 RSA authentication identity of the user.This file should not be readable by anyone

but the user.It is possible to specify a passphrase when generating the key; that passphrase will be used to

encrypt the private part of this file using 3DES.This file is not automatically accessed by ssh-keygen but it is

offered as the default file for the private key.ssh(1) will read this file when a login attempt is made.
$HOME/.ssh/id_rsa.pub

Contains the protocol version 2 RSA public key for authentication.The contents of this file should be added to

$HOME/.ssh/authorized_keys on all machines where the user wishes to log in using public key authentication.There

is no need to keep the contents of this file secret.
/etc/moduli

Contains Diffie-Hellman groups used for DH-GEX.The file format is described in moduli(5).
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行