<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Modify sshd_config in R81 in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/106441#M8487</link>
    <description>&lt;P&gt;OK, you've got me confused. I would say you cannot edit binary file with vi editor &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/31699"&gt;@johnguo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;vi /bin/sshd_template_xlate (Make your changes)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But your example works like a charm. &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One more thing, this is not only for R81, it seems to be the case for R80.40 JHF T83 (at least the blink image dated Dec 9th used in AWS China).&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 13:11:21 GMT</pubDate>
    <dc:creator>Srdjan_B</dc:creator>
    <dc:date>2020-12-28T13:11:21Z</dc:date>
    <item>
      <title>Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/105677#M8372</link>
      <description>&lt;P&gt;In R81 sshd_config is replaced after each reboot. You need to do the following to make your changes permanent and survive reboot&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;: &lt;BR /&gt;vi /etc/ssh/templates/sshd_config.templ (Make your changes)&lt;BR /&gt;/bin/sshd_template_xlate &amp;lt; /config/active&lt;BR /&gt;service sshd reload&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;: &lt;BR /&gt;sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/templates/sshd_config.templ&lt;BR /&gt;sed -i 's/PermitRootLogin forced-commands-only/PermitRootLogin yes/' /etc/ssh/templates/sshd_config.templ&lt;BR /&gt;/bin/sshd_template_xlate &amp;lt; /config/active&lt;BR /&gt;service sshd reload&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 22:07:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/105677#M8372</guid>
      <dc:creator>johnguo</dc:creator>
      <dc:date>2021-05-03T22:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/105694#M8378</link>
      <description>&lt;P&gt;That suggests there is some config we can change via clish/WebUI now…will have to look.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:45:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/105694#M8378</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-12-17T01:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/106441#M8487</link>
      <description>&lt;P&gt;OK, you've got me confused. I would say you cannot edit binary file with vi editor &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/31699"&gt;@johnguo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;vi /bin/sshd_template_xlate (Make your changes)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But your example works like a charm. &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One more thing, this is not only for R81, it seems to be the case for R80.40 JHF T83 (at least the blink image dated Dec 9th used in AWS China).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 13:11:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/106441#M8487</guid>
      <dc:creator>Srdjan_B</dc:creator>
      <dc:date>2020-12-28T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/108144#M14562</link>
      <description>&lt;P data-unlink="true"&gt;In the mean time, sk106031 was updated with the new procedure for R81, R80.40 JHF T83 and above:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;# vi /etc/ssh/templates/sshd_config.templ&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;# /bin/sshd_template_xlate &amp;lt; /config/activ&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;# service sshd restart&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 11:20:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/108144#M14562</guid>
      <dc:creator>Tobias_Moritz</dc:creator>
      <dc:date>2021-01-19T11:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157676#M27389</link>
      <description>&lt;P&gt;Unfortunately it never survives reboot on R81.10&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 20:41:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157676#M27389</guid>
      <dc:creator>Karen_Askelson</dc:creator>
      <dc:date>2022-09-20T20:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157693#M27400</link>
      <description>&lt;P&gt;What did you try to change in &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;/etc/ssh/templates/sshd_config.templ&lt;/STRONG&gt;&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;If you tried to change mac/cipher/kex algorithms that way, it is normal that this did not survive reboots. This is mentioned in sk106031:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: Starting from R81.10, Configuration of Macs and Ciphers - refer to &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk179517" target="_blank" rel="noopener"&gt;sk179517&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;That sk says:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;From R81.10: &lt;/STRONG&gt;the following commands were added to change the configuration using Clish:&lt;BR /&gt;set ssh server cipher VALUE off&lt;BR /&gt;set ssh server cipher VALUE on&lt;BR /&gt;set ssh server mac VALUE off&lt;BR /&gt;set ssh server mac VALUE on&lt;BR /&gt;show ssh server cipher enabled&lt;BR /&gt;show ssh server cipher supported&lt;BR /&gt;show ssh server mac enabled&lt;BR /&gt;show ssh server mac supported&lt;/P&gt;
&lt;P&gt;followed by a "save config" of course.&lt;/P&gt;
&lt;P&gt;Did you try to change something in &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;/etc/ssh/templates/sshd_config.templ&lt;/STRONG&gt;&lt;/FONT&gt;, that was not moved to confd/clish in R81.10? That should survive reboot as far as I know. Please enlight us &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 07:12:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157693#M27400</guid>
      <dc:creator>Tobias_Moritz</dc:creator>
      <dc:date>2022-09-21T07:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157724#M27418</link>
      <description>&lt;P&gt;Hi Tobias, thanks for the response!&amp;nbsp; I'm actually just trying to enable SSH password authentication per&amp;nbsp;&lt;SPAN&gt;sk109587 following these steps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cp /etc/ssh/templates/sshd_config.templ{,_BKP}&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;sed -i 's/PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/templates/sshd_config.templ&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/templates/sshd_config.templ&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;/usr/bin/sshd_template_xlate &amp;lt; /config/active&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;service sshd restart&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I then test it and get the following error:&amp;nbsp; &lt;EM&gt;No supported authentication methods available (server sent: publickey)&lt;BR /&gt;&lt;/EM&gt;When I manually check the&amp;nbsp;sshd_config.templ file, PasswordAuthentication and PermitRootLogin are both set to yes as expected.&amp;nbsp; However, when I manually check the /etc/ssh/sshd_config file, it still shows no for PasswordAuthentication and PermitRootLogin is set to&amp;nbsp;forced-commands-only.&amp;nbsp; When I manually change those to yes and restart sshd it works....until I reboot.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 12:46:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157724#M27418</guid>
      <dc:creator>Karen_Askelson</dc:creator>
      <dc:date>2022-09-21T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157730#M27421</link>
      <description>&lt;P&gt;Oh, CloudGuard Network. These behave different regarding defaults and maybe the procedure has changed since that sk was written.&lt;/P&gt;
&lt;P&gt;Unfortunately, I do not have&amp;nbsp; a CloudGuard Network gateway at hand at the moment, so I am out here. On open server or appliance, it still works like documented even in R81.10 (have tried that).&lt;/P&gt;
&lt;P&gt;If you do not get a solution here from CheckMates you may file a support request through TAC or use the provide feedback button in that sk telling the sk owner, that the documented procedure did not work for you in R81.10.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:10:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157730#M27421</guid>
      <dc:creator>Tobias_Moritz</dc:creator>
      <dc:date>2022-09-21T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157744#M27428</link>
      <description>&lt;P&gt;&lt;STRONG&gt;This is probably a bad idea, but it may be a way to accomplish your goal.&lt;/STRONG&gt; You could always make the change in /etc/sshd/sshd_config directly, then set the immutable flag on it (chattr +i /etc/sshd/sshd_config). With the immutable attribute set, even root can't change the file.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 16:03:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157744#M27428</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-09-21T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157748#M27429</link>
      <description>&lt;P&gt;Yeah, I'm hoping that doesn't end up being the solution.&amp;nbsp; I've opened a ticket with support and will let you know the outcome.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 16:47:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157748#M27429</guid>
      <dc:creator>Karen_Askelson</dc:creator>
      <dc:date>2022-09-21T16:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157751#M27431</link>
      <description>&lt;P&gt;That is an interesting idea,&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;!&amp;nbsp;Hoping there is a better way, but at least there is backup option!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 17:20:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157751#M27431</guid>
      <dc:creator>dlusk</dc:creator>
      <dc:date>2022-09-21T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157821#M27439</link>
      <description>&lt;P&gt;Have you tried using&amp;nbsp;&lt;SPAN&gt;sk179517?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk179517" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk179517&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 11:48:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157821#M27439</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2022-09-22T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157826#M27440</link>
      <description>&lt;P&gt;Hi Amir, I'm not trying to change ciphers, just allow password authentication.&amp;nbsp; I opened a ticket with support yesterday letting them know I tried the steps in&amp;nbsp;sk179050 and unfortunately, the response I got was referencing&amp;nbsp;sk179050 telling me to run the commands in that SK with the addition of save config. Of course that didn't help survive a reboot.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":unamused_face:"&gt;😒&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 12:16:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/157826#M27440</guid>
      <dc:creator>Karen_Askelson</dc:creator>
      <dc:date>2022-09-22T12:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/158163#M27551</link>
      <description>&lt;P&gt;Hi Bob, just wanted to provide an update.&amp;nbsp; Support suggested your workaround, so I guess will be going with that.&amp;nbsp; Thanks for your help!&lt;/P&gt;&lt;P&gt;From Support:&amp;nbsp; We suspect that there is some failure when pushing the new configuration to the Gaia database:&lt;BR /&gt;/usr/bin/sshd_template_xlate &amp;lt; /config/active&lt;BR /&gt;&lt;BR /&gt;Without redeploying the AWS instance, we can edit the /etc/ssh/sshd_config file and make the changes permanent with the chattr +i command. Please update us if this is an suitable workaround.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 13:17:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/158163#M27551</guid>
      <dc:creator>Karen_Askelson</dc:creator>
      <dc:date>2022-09-27T13:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/169385#M30655</link>
      <description>&lt;P&gt;Hi, good to hear,this workaround solved my issue with some AWS instances&lt;BR /&gt;&lt;BR /&gt;Anybody know if it officially solved in any 81.10 jumbo? atm my CP still have Take 66&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:25:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/169385#M30655</guid>
      <dc:creator>AleLovaz82</dc:creator>
      <dc:date>2023-01-27T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sshd_config in R81</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/183131#M33622</link>
      <description>&lt;P&gt;Important to note that SSH Key Exchange (KEX) commands are supported in R81.20 CLISH:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;show ssh server kex supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;show ssh server kex enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set ssh server kex&lt;/SPAN&gt;&amp;nbsp;VALUE on&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set ssh server kex&lt;/SPAN&gt;&amp;nbsp;VALUE off&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_Gaia_AdminGuide/Content/Topics-GAG/Advanced-Gaia-Configuration.htm?Highlight=kex" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_Gaia_AdminGuide/Content/Topics-GAG/Advanced-Gaia-Configuration.htm?Highlight=kex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I verified with nmap (before and after) that the new CLISH commands do allow for modifying the KEX values.&lt;/P&gt;&lt;P&gt;nmap -p --vv --script=ssh2-enum-algos.nse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huge improvement, especially for anyone dealing with vulnerability scans that discover SHA1 still being offered by GAIA's SSHD.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 17:14:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Modify-sshd-config-in-R81/m-p/183131#M33622</guid>
      <dc:creator>Fire_Verse</dc:creator>
      <dc:date>2023-06-05T17:14:30Z</dc:date>
    </item>
  </channel>
</rss>

