6

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.

user1068861
  • 111
  • 1
  • 8
  • No-one to answer this question? – Milos Cuculovic Jul 14 '15 at 08:38
  • What is stopping you from using port 22222? Is there a firewall in the way? I suppose you must be on a newer setup that is using Firewalld. If so, you probably need to poke holes between the two machines with `firewall-cmd`. You can test connectivity between the two machines with `netcat` (though RHEL’s version is not ideal) or even `telnet`. – Micah Elliott Jul 15 '15 at 01:17

1 Answers1

9

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

Sjon
  • 4,989
  • 6
  • 28
  • 46