I am trying to use a script to bring back log to the admin.This script is send and load via mussh on the remote machine#!/bin/bashscp files.log user@user:~/(I have also tried with sudo scp ... but same result).The permission are ok for root login via ssh.The authorized_keys is set correctlyBut, each times I try to load the script from remote via musshmussh -a -i /home/the_user/.ssh/key -d -H hostfile -c ' sh script-to-bring-back-log.sh' -m2It give me back:Permission deniedPermission deniedPermission denied (publickey,password).
Is there a BASH protection on remote copy of root files?
bash;shell script;remote
There seems to be something going wrong in mussh.  I can reproduce your problem and will fix it in the next release.As a workaround, I recommend you use the following.eval $(ssh-agent -s)ssh-add /home/the_user/.ssh/keymussh -d -H hostfile -c ' sh script-to-bring-back-log.sh' -m2eval $(ssh-agent -k)