Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

glusterfs geo replication on non standard ssh port

I need to achieve glusterfs geo replication.

In my production environment the port 22 is not open between the servers I want to do replication (This is by design and we have to leave with it).

Is there a way I can use a customize ssh port (i.e 22222) to achieve it.

Is there any other solution for this.

NOTE: I can not use other servers other then this two.

like image 856
user1068861 Avatar asked Dec 17 '14 12:12

user1068861


1 Answers

Gluster uses the installed ssh client meaning you can override configuration using the normal ssh_config.

So create .ssh/config in the homedir of the user that runs glusterfs (probably root) and configure the client using the documented Host:

[glusterfsnode-hostname]
Port 2222

Alternatively, you can configure glusterfs to use a different ssh-command, and add -p 2222 there

like image 69
Sjon Avatar answered Oct 29 '22 16:10

Sjon