<html><head></head><body>If the os is using selinux, a policy change is needed to allow the ssh daemon to connect to the new port. Look at audit2allow for a solution.<br><br><div class="gmail_quote">On March 24, 2019 8:04:27 AM EDT, Andrey Volodin &lt;andrevolodin@gmail.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div dir="ltr">you may find some reference here:&nbsp;<a href="http://fatphil.org/linux/ssh_ports.html">http://fatphil.org/linux/ssh_ports.html</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019 at 11:28 AM Maurya M &lt;<a href="mailto:mauryam@gmail.com">mauryam@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Andrey,<div>&nbsp;For some reason the sshd_config Ports pararmeter is not allowing to change when i restart the ssh service.</div><div>so following this&nbsp;<a href="https://stackoverflow.com/questions/27525456/glusterfs-geo-replication-on-non-standard-ssh-port/55303479#55303479" target="_blank">https://stackoverflow.com/questions/27525456/glusterfs-geo-replication-on-non-standard-ssh-port/55303479#55303479</a> tried config options as described.</div><div><br></div><div>i did try you usuggestion&nbsp;&nbsp;config ssh-command '/usr/sbin/sshd -D&nbsp; -p 2222' ,&nbsp;</div><div>geo-replication command failed<br></div><div><br></div><div>thanks,</div><div>Maurya</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019 at 4:39 PM Andrey Volodin &lt;<a href="mailto:andrevolodin@gmail.com" target="_blank">andrevolodin@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">normally you should be able to edit the config file /etc/ssh/sshd_config<div>However, at the page&nbsp;<a href="https://serverfault.com/questions/826893/how-to-temporarily-run-a-secondary-ssh-server-on-a-separate-port" target="_blank">https://serverfault.com/questions/826893/how-to-temporarily-run-a-secondary-ssh-server-on-a-separate-port</a> I can see a one-time run solution as&nbsp;<span style="background-color:rgb(239,240,241);color:rgb(36,39,41);font-family:Consolas,Menlo,Monaco,&quot;Lucida Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier New&quot;,monospace,sans-serif;font-size:13px;white-space:pre-wrap">/usr/sbin/sshd -D  -p 22200</span></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 24, 2019 at 11:00 AM Maurya M &lt;<a href="mailto:mauryam@gmail.com" target="_blank">mauryam@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi All,<div>&nbsp;Have tried config the ssh-command to use -p 2222 using this config option:</div><div><br></div><div>config ssh-command 'ssh -p 2222' , but failed, do you know the correct syntax , also where can i check for failed georeplication command logs.<br></div><div><br></div><div>TIA,</div><div>Maurya</div><div><br></div><div><br></div></div></div>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.</body></html>