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
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.