Geuster replication glusterfs on non-standard ssh port

I need to achieve glusterfs geo-replication.

In my production environment, port 22 is not open between the servers that I want to replicate (this is by design, and we have to get away with it).

Is there a way that I can use to configure the ssh port (e.g. 22222).

Is there any other solution for this.

NOTE. I can not use other servers except the following two.

+6
source share
1 answer

Gluster uses the installed ssh client , that is, you can override the configuration using regular ssh_config.

So, create .ssh / config in the homedir of the user who runs glusterfs (possibly 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

+8
source

Source: https://habr.com/ru/post/979779/


All Articles