Hi John,

Am 04.03.2016 um 13:56 schrieb John Lewis:
> On Fri, Mar 4, 2016 at 6:12 PM, Andreas Nitsche <a...@sixhop.net
> <mailto:a...@sixhop.net>> wrote:
> 
> 
> 
>     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#

Let's step in here. The ssh command needs to work to get dirvish to
work. Please check on the host client1:

# netstat -tulpen | grep 11111

This needs to show up the sshd process. On one of my hosts this looks
like this for default port 22:

tcp        0      0 0.0.0.0:22                  0.0.0.0:*
    LISTEN      0          9545       1463/sshd
tcp        0      0 :::22                       :::*
    LISTEN      0          9547       1463/sshd

If you cannot find the line, maybe this helps:

# netstat -tulpen | grep sshd

If there's another port adjust your configuration. Once this has been
fixed, try the above command for the execution of the script through ssh
again.

Andi
_______________________________________________
Dirvish mailing list
Dirvish@dirvish.org
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to