deployphp / action

GitHub Action for Deployer
MIT License
227 stars 46 forks source link

Error: EACCES: permission denied, open '/etc/ssh/ssh_config' #1

Closed ddrager closed 3 years ago

ddrager commented 3 years ago

Hello,

When not using known_hosts secret, action attempts to add this onto the ssh_config file:

fs.appendFileSync(`/etc/ssh/ssh_config`, `StrictHostKeyChecking no`)

However this makes the action fail with the error:

Error: EACCES: permission denied, open '/etc/ssh/ssh_config'

When adding known keys to the action, this does not run so does not error out.

antonmedv commented 3 years ago

Can you make PR to fix it?