glusterfs geo replication on non standard ssh port
Asked Answered
Z

1

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.

Zigmund answered 17/12, 2014 at 12:17 Comment(2)
No-one to answer this question?Chevaldefrise
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.Race
W
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

Wilma answered 20/7, 2015 at 10:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.