我很长时间都在寻找这个.
我需要从SSH服务器中提取并获取模数和指数.
例如,我知道,在服务器xxx.xxx.xxx.xxx上运行ssh(我可以连接到此服务器/ ping),但我不知道用户名和密码,因此无法登录.
我需要得到该服务器的公共RSA密钥的模数和指数.
我发现,ssh-keyscan可以得到模数+指数(来自文档),但仅限于使用ssh-rsa1.如果我尝试使用ssh-keyscan获取ssh-rsa(2)公钥,我无法从输出模数和指数中检索.
可能吗 ?
ssh rsa certificate modulus
certificate ×1
modulus ×1
rsa ×1
ssh ×1