Hi John, Try ssh with -vv, to see where rhe problrm is... it's commonly keyauth problem, but verbose mode tells you more:)
-- Olivér 2016.03.04. 13:57 ezt írta ("John Lewis" <lewisjohn....@gmail.com>): > Hi Andi, > > On Fri, Mar 4, 2016 at 6:12 PM, Andreas Nitsche <a...@sixhop.net> wrote: > >> Hi John, >> ok, are you using CentOS or RedHat and have SELinux in place? >> > > It's Debian. No SELinux. > > >> What happens if you do: >> # ssh -p 11111 -i /root/.ssh/id_rsa_dirvish_client1 client1 >> "/etc/dirvish_mysql_dump.sh" >> from your backup machine? >> >> Maybe a small echo would be nice for this test. >> > > Ok, so now /etc/dirvish_mysql_dump.sh content: > > #!/bin/bash > echo hey > exit 0 > > If running directly from client1, it's working as expected: > > root@client1:/etc# ./dirvish_mysql_dump.sh > hey > root@client1:/etc# > > If running from server (backup machine), it's hang and need to be > terminated using ^C > > root@server:/backup/dirvish/client1# ssh -p 11111 -i > /root/.ssh/id_rsa_dirvish_client1 client1 "/etc/dirvish_mysql_dump.sh" > > ^Croot@server:/backup/dirvish/client1# > > Dont know if this information help: > > This is when "dirvish --vault client1 --init" run: > > > root@server:/home/john# ps -aux | grep dirvish > warning: bad ps syntax, perhaps a bogus '-'? > See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ > root 883885 0.0 0.0 25076 6188 pts/2 S+ 19:38 0:00 > /usr/bin/perl /usr/sbin/dirvish --vault client1 --init > root 883887 0.0 0.0 4136 648 pts/2 S+ 19:38 0:00 sh -c > ssh -p 11111 -i /root/.ssh/id_rsa_dirvish_client1 client1 client1 'cd ; > DIRVISH_SERVER=server.myserver.com DIRVISH_CLIENT=client1 DIRVISH_SRC= > DIRVISH_DEST=/backup/dirvish/client1/2016-03-04/tree > DIRVISH_IMAGE=client1:default:2016-03-04 ; /etc/dirvish_mysql_dump.sh' > >>/backup/dirvish/client1/2016-03-04/log > root 883888 0.0 0.0 43448 3292 pts/2 S+ 19:38 0:00 ssh -p > 9731 -i /root/.ssh/id_rsa_dirvish_client1 client1 client1 cd ; > DIRVISH_SERVER=server.myserver.com DIRVISH_CLIENT=client1 DIRVISH_SRC= > DIRVISH_DEST=/backup/dirvish/client1/2016-03-04/tree > DIRVISH_IMAGE=client1:default:2016-03-04 ; /etc/dirvish_mysql_dump.sh > root 884119 0.0 0.0 8692 964 pts/3 S+ 19:38 0:00 grep > dirvish > root@server:/home/john# > > >> Andi >> > > Thanks a lot! > > Best regards, > John. > > > _______________________________________________ > Dirvish mailing list > Dirvish@dirvish.org > http://www.dirvish.org/mailman/listinfo/dirvish > >
_______________________________________________ Dirvish mailing list Dirvish@dirvish.org http://www.dirvish.org/mailman/listinfo/dirvish