ssh script returns 255 error

前端 未结 8 795
北海茫月
北海茫月 2020-12-08 04:04

In my code I have the following to run a remote script.

ssh root@host.domain.com \"sh /home/user/backup_mysql.sh\"

For some reason it keeps

8条回答
  •  离开以前
    2020-12-08 04:44

    It can very much be an ssh-agent issue. Check whether there is an ssh-agent PID currently running with eval "$(ssh-agent -s)"

    Check whether your identity is added with ssh-add -l and if not, add it with ssh-add .

    Then try again your ssh command (or any other command that spawns ssh daemons, like autossh for example) that returned 255.

提交回复
热议问题