<?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: Allowing SSH username/password authentication to Gateways in AWS / GCP in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/122546#M17538</link>
    <description>&lt;P&gt;This does work, although it should be noted that in R80.40 take 83 and above, the template file must be modified and copied over in order to preserve the setting upon reboot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cp /etc/ssh/templates/sshd_config.templ /etc/ssh/templates/sshd_config.templ_backup
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/templates/sshd_config.templ
sed -i 's/PermitRootLogin forced-commands-only/PermitRootLogin yes/' /etc/ssh/templates/sshd_config.templ
/usr/bin/sshd_template_xlate &amp;lt; /config/active
service sshd restart&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk109587" target="_self"&gt;sk109587&lt;/A&gt;&amp;nbsp;was updated with instructions to update and push the template file, but it's missing the full path on the 4th command.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 21:33:09 GMT</pubDate>
    <dc:creator>johnnyringo</dc:creator>
    <dc:date>2021-06-30T21:33:09Z</dc:date>
    <item>
      <title>Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/117667#M16635</link>
      <description>&lt;P&gt;We have several CheckPoint R80.30 or R80.40 gateways in AWS and GCP, all configured to use TACACS authentication requiring a 2FA token code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to login to the GAIA WebUI portal just fine via TACACS, but SSH appears to only accept public keys.&amp;nbsp; /var/log/secure on the gateway shows this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Connection closed by authenticating user billybob 10.21.56.27 port 50620 [preauth]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To authenticate using username/password to SSH, do I need to muck around with /etc/ssh/sshd_config or is there an easy clish command to do this?&amp;nbsp; I found&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk109587" target="_blank" rel="noopener"&gt;sk109587&lt;/A&gt;&amp;nbsp;but it's quite old, and only mentions R77.&lt;/P&gt;&lt;P&gt;To state the obvious, our gateways do &lt;EM&gt;not&lt;/EM&gt; have port 22 open to the Internet, so we are not concerned about password cracking or account locking.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 17:09:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/117667#M16635</guid>
      <dc:creator>johnnyringo</dc:creator>
      <dc:date>2021-05-04T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/117866#M16677</link>
      <description>&lt;P&gt;The process should still be relevant for R8x.&lt;BR /&gt;Specifically, the sshd_config needs to be edited to enable password/root login.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:15:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/117866#M16677</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-05-06T20:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/122546#M17538</link>
      <description>&lt;P&gt;This does work, although it should be noted that in R80.40 take 83 and above, the template file must be modified and copied over in order to preserve the setting upon reboot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cp /etc/ssh/templates/sshd_config.templ /etc/ssh/templates/sshd_config.templ_backup
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/templates/sshd_config.templ
sed -i 's/PermitRootLogin forced-commands-only/PermitRootLogin yes/' /etc/ssh/templates/sshd_config.templ
/usr/bin/sshd_template_xlate &amp;lt; /config/active
service sshd restart&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk109587" target="_self"&gt;sk109587&lt;/A&gt;&amp;nbsp;was updated with instructions to update and push the template file, but it's missing the full path on the 4th command.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 21:33:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/122546#M17538</guid>
      <dc:creator>johnnyringo</dc:creator>
      <dc:date>2021-06-30T21:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184694#M33932</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have this same problem with version 81.20 HF 10, I copied the steps of &lt;SPAN class=""&gt;&lt;A class="" href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/31543" target="_self"&gt;&lt;SPAN class=""&gt;johnnyringo&lt;/SPAN&gt;&lt;/A&gt; to keep changes, a&lt;/SPAN&gt;nd the SSH works initially, but after reboot the problem appears again, changes are not permament, so I have to execute it on every reboot.To be more specific, the /etc/ssh/sshd_config keep changes for first PasswordAuthentication, but not for the last in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sk109587 version 81.20 is not mentioned, does anybody know if is going to be corrected or the steps are different?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 10:13:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184694#M33932</guid>
      <dc:creator>iesnoz</dc:creator>
      <dc:date>2023-06-24T10:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184698#M33936</link>
      <description>&lt;P&gt;FYI it did change in R81.10, which is just these 3 lines in expert mode:&lt;/P&gt;
&lt;DIV class="container" title="Hint: double-click to select code"&gt;
&lt;DIV class="line number1 index0 alt2" data-bidi-marker="true"&gt;&lt;CODE class="xml plain"&gt;sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config&lt;/CODE&gt;&lt;/DIV&gt;
&lt;DIV class="line number2 index1 alt1" data-bidi-marker="true"&gt;&lt;CODE class="xml plain"&gt;sed -i 's/PermitRootLogin forced-commands-only/PermitRootLogin yes/' /etc/ssh/sshd_config&lt;/CODE&gt;&lt;/DIV&gt;
&lt;DIV class="line number3 index2 alt2" data-bidi-marker="true"&gt;&lt;CODE class="xml plain"&gt;service sshd reload&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure about R81.20; could be same as R81.10 or could be another change.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 15:06:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184698#M33936</guid>
      <dc:creator>johnnyringo</dc:creator>
      <dc:date>2023-06-24T15:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184700#M33938</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the reply, I tried these commands but the result is the same. Checking the sshd_config file I see that after reboot one of the PasswordAuthentication lines remains set as yes but the other is set as no:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;# To disable tunneled clear text passwords, change to no here!&lt;BR /&gt;#PasswordAuthentication yes&lt;BR /&gt;#PermitEmptyPasswords no&lt;BR /&gt;PasswordAuthentication yes&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Match address 0::0/0,0.0.0.0/0&lt;BR /&gt;PasswordAuthentication no&lt;BR /&gt;Match all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I edit the file with vi editor and change to "yes" then I can connect with SSH, but only until restart. "PermitRootLogin" line remains always the same:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;UseDNS no&lt;BR /&gt;PermitRootLogin yes&lt;BR /&gt;ClientAliveInterval 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 17:02:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184700#M33938</guid>
      <dc:creator>iesnoz</dc:creator>
      <dc:date>2023-06-24T17:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184822#M33973</link>
      <description>&lt;P&gt;You should be editing the template file&amp;nbsp; /etc/ssh/templates/sshd_config.templ rather than sshd_config directly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:51:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184822#M33973</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-06-26T16:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184837#M33977</link>
      <description>&lt;P&gt;Hi PhoneBoy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I checked the template and the commands are in "yes". I rebooted, just in case, and again I have to edit the second "PasswordAuthentication" which stays in no in the sshd_config. I rechecked the template and both values are "yes":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[Expert@MGMT8120:0]# cat /etc/ssh/templates/sshd_config.templ | grep Password&lt;BR /&gt;#PasswordAuthentication yes&lt;BR /&gt;#PermitEmptyPasswords no&lt;BR /&gt;PasswordAuthentication yes&lt;BR /&gt;# PasswordAuthentication yes&lt;BR /&gt;# PAM authentication, then enable this but set PasswordAuthentication yes&lt;BR /&gt;PasswordAuthentication yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 18:16:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184837#M33977</guid>
      <dc:creator>iesnoz</dc:creator>
      <dc:date>2023-06-26T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184849#M33985</link>
      <description>&lt;P&gt;Huh, looks like&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk109587" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk109587&lt;/A&gt;&amp;nbsp;suggests to edit the sshd_config file directly in some versions.&lt;BR /&gt;If this isn't working as expected, I recommend a TAC case: &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&lt;BR /&gt;If you want to be sure the sshd_config file doesn't get overwritten, make the file immutable (chattr +i).&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 19:11:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184849#M33985</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-06-26T19:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Allowing SSH username/password authentication to Gateways in AWS / GCP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184878#M33989</link>
      <description>&lt;P&gt;Thanks for the tip, I used "chattr +i" and after reboot SSH is working.&lt;/P&gt;&lt;P&gt;I will open a case with TAC anyway to check if the sk109587 needs to be updated with version 81.20&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 06:20:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Allowing-SSH-username-password-authentication-to-Gateways-in-AWS/m-p/184878#M33989</guid>
      <dc:creator>iesnoz</dc:creator>
      <dc:date>2023-06-27T06:20:42Z</dc:date>
    </item>
  </channel>
</rss>

