星期五, 5月 17, 2019

Update old OpenSSH default DH key size

For Windows 2000, setupssh371-20031015.exe sholud be a good choice for SSH Server / Client. But when connecting to Jenkins as a SSH Publisher, Jenkins complained that DH key size 2047 not valid. How to fix it? Generate by yourself:
  • cd "C:\Program Files\OpenSSH\bin"
  • ssh-keygen -G moduli-2048.candidates -b 2048
  • (wait)
  • ssh-keygen -T moduli-2048 -f moduli-2048.candidates
  • (wait)
  • move moduli-2048 ..\etc\moduli
  • del moduli-2048.candidate

沒有留言:

張貼留言