在Bitbucket上运行部署时,我的权限仍被拒绝。
在管道中使用的任何SSH密钥都不应具有密码短语。
sshd_config
文件有:
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
我应该把这个改成是吗?
比特桶
documentation
他说我应该
ssh-copy-id -i my_ssh_key user@host
我不知道这为什么不清楚。
编辑:以下是bitbucket生成的错误:
+ cat ./deploy.sh | ssh username@remote.com
Pseudo-terminal will not be allocated because stdin is not a terminal.
Warning: Permanently added the RSA host key for IP address âXXX.XXX.XX.XXâ to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys