ssh script returns 255 error

前端 未结 8 816
北海茫月
北海茫月 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:54

    This error will also occur when using pdsh to hosts which are not contained in your "known_hosts" file.

    I was able to correct this by SSH'ing into each host manually and accepting the question "Do you want to add this to known hosts".

提交回复
热议问题