我将尝试为我的部署设置 bitbucket 管道。我会将管道添加到 bitbucket 存储库并使用已知主机正确配置 SSH 密钥。之后,每次获得主机密钥验证失败时,我都会运行 ssh 命令 这是我的管道配置
image: php:7.2
pipelines:
default:
- step:
name: "Logging to server"
script:
- apt-get update && apt-get install -y unzip
- apt-get install -y openssh-client
- echo "Trying to logging ..."
- ssh user@ip
而且我已经将生成的(来自 bitbucket ssh 部分)公钥添加到我服务器的 ~/.ssh/authorized_keys
文件中。
如何解决问题。? (centos 7 服务器)