SSh的RSA/DSA认证原理

沙诺 posted @ 2012年10月22日 01:25 in 云计算 , 2228 阅读

几个月前就配置好了hadoop的集群,但是其中Rss密钥的问题一直不太清除,今天看了篇文章,大概知道了它的原理,分享以下。。

把公钥放在跑sshd服务的机器上,也就是:cp id_rsa.pub  authorized_keys。。然后客户机上放专有密钥,ssh连接的原理是:一把专用密钥能够解锁与它相匹配的公钥,下面是连接的过程:

1、客户机发起连接 ssh  user@ip。

2、sshd生成一个随机数,用公钥加密,发给客户机。

3、客户机收到这个加密数,用专用密钥解密,解密出来的随机数发给sshd。

4、sshd发现这个正确,于是同意无密码连接。

5、登录成功。

 

 

Avatar_small
celebrity heights 说:
2021年1月19日 23:47

It's a good chance to know more about these stories, very interesting and meaningful. And please take a look at this site, where I find the all the information I need about celeb height wiki

Avatar_small
maid services abu dh 说:
2021年8月27日 22:46

Those who find themselves looking regarding specialized washing services for interiors and also furniture, they want not get worried. You may also search specialist those that offer these kinds of services by means of their decades of knowledge and experience. They are focused on their customers to supply standard, tailor made and energetic interior washing services. They may be dedicated and offer timely, innovative and affordable services. Using engines like google, you can simply find an extremely committed and also experienced staff of professionals from the neighborhood.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter