Slow public key authentication with paramiko

不想你离开。 提交于 2019-12-06 02:16:54

pycrypto>=2.5 is very slow. After downgrading to pycrypto==2.4.1, I saw a 25x improvement.

After a fair amount of experimentation, it appears that the delay is related to the length of the key. The first key I was using was 4096 bits. When I switched to a shorter (2048 bit) key, the amount of time required to authenticate dropped dramatically (< 2 seconds).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!