星期五, 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

星期二, 5月 14, 2019

New Selenium Node (Chrome / Firefox) on CentOS without GUI

  • Assume Selenium Hub listen on docker host 172.17.0.1:4444
  • docker (refer this)
  • docker-compose (refer this)
  • docker-compose.yml (updated from here)
    • version: "3"
    • services:
      • chrome:
        • image: selenium/node-chrome:3.141.59-neon
        • volumes:
          • - /dev/shm:/dev/shm
        • environment:
          • - HUB_HOST=172.17.0.1
          • - HUB_PORT=4444
          • - REMOTE_HOST=http://<Host_or_IP>:6666
          • - NODE_MAX_INSTANCES=5
        • ports:
          • - "6666:5555"
      • firefox:
        • image: selenium/node-firefox:3.141.59-neon
        • volumes:
          • - /dev/shm:/dev/shm
        • environment:
          • - HUB_HOST=172.17.0.1
          • - HUB_PORT=4444
          • - REMOTE_HOST=http://<Host_or_IP>:7777
          • - NODE_MAX_INSTANCES=5
        • ports:
          • - "7777:5555"