1.ssh远程执行命令出现「Are you sure you want to continue connecting (yes/no)?」解决方法
解决办法 :
#首先备份 ssh 配置文件
~]# cp /etc/ssh/ssh_config /etc/ssh/ssh_config_bak
将配置文件中的 StrictHostKeyChecking ask改为 StrictHostKeyChecking no,GSSAPIAuthentication yes 改为 GSSAPIAuthentication no。
Host *
GSSAPIAuthentication no
StrictHostKeyChecking no
然后再执行批量的sshpass批量命令就虽然会有提示,但是可以正常执行。
2. 将php进程用户www的id_rsa.pub里的内容,追加到authorized_keys中
[root@izuf6iy2jeebsu3trdh3x2z www]# cat /home/www/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
3. 宿主机代码检出检测出错,请确认把php进程用户www的ssh-key加入git的deploy-keys列?
无需加入deployky 加入 sshkey即可