使用SSH连接远程主机或GitHub,远程主机有多个公钥的情况下,它怎样知道使用哪个公钥来解密
简单的说,是client告诉它的。根据RFC 4252 - The Secure Shell (SSH) Authentication ProtocolTo perform actual authentication, the client MAY then send a signature generated using the private key. The client MAY send the signature directly without first verifying whether the key is acceptable. The signature is sent using the following packet: byte SSH_MSG_USERAUTH_REQUEST string user name string service name string "publickey" boolean TRUE string public key algorithm name string public key to be used for authentication string signature所以服务器端受到请求后,需要检查 public key 是不是在许可范围。还需要检查签名是否正确。
推荐阅读
- 『先进』长江流域最先进洗舱站在宁投运 油可分离回收,水能循环使用
- 汽车|冬天怎样让车内温度快速升高?座椅加热的最佳使用方式二,外循环的作用总结
- 汽车|迈凯伦Artura不再使用迈凯伦祖传V8引擎了?
- 联通校园宽带限制笔记本发射wifi让其他设备连接,这样做合法吗
- python的html5lib这个库咋使用啊我在网上也没有找到相关文档
- |东风轻量化车身连接试制平台正式投用
- win7中本地连接跟无线网卡同时使用时是怎么样的模式
- 可不可能利用网盘的秒传功能使用伪造的MD5(或其他信息)值进行文件分享
- 为啥很多企业给用户发邮件会使用noreply/no-reply@xx.xx的邮箱
- 怎么样将家里的液晶电视和笔记本电脑连接
