【发布时间】:2018-01-27 17:36:08
【问题描述】:
尝试从 travis 部署到 Digital Ocean,继续获取
fatal: Unable to negotiate with 52.54.31.11 port 39748: no matching host key type found. Their offer: ssh-dss [preauth]
在主机上。
最近尝试在 .travis.yml 中添加很多东西
before_script:
- echo -e "Host 159.203.162.79\n\tUser root\n\tIdentityFile /tmp/deploy_rsa\n\tHostKeyAlgorithms +ssh-dss\n" >> ~/.ssh/config
但没有爱。这让我很感动
/home/travis/.ssh/config line 7: Bad protocol 2 host key algorithms '+ssh-dss'.
那么,闪亮的新 openssl 似乎是个问题,而 travis 是旧版本?
当然,我使用的是私钥,一切似乎都可以正常工作。
before_install:
- openssl aes-256-cbc -K $encrypted_ca03cb1712d9_key -iv $encrypted_ca03cb1712d9_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d && chmod 600 /tmp/deploy_rsa
before_deploy:
- eval "$(ssh-agent -s)"
- ssh-add /tmp/deploy_rsa
【问题讨论】:
标签: ssh travis-ci digital-ocean sshd