<?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: SSH authentication using RSA for uid=0 in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8004#M391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What error do you get with that SSH command?&lt;/P&gt;&lt;P&gt;I suspect the issue is that the environment variables aren't getting set correctly for this other user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2018 15:39:15 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2018-07-13T15:39:15Z</dc:date>
    <item>
      <title>SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8001#M388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a bash script to run from my management station to connect to the gateways via ssh. I would like to utilize the login without password prompting. I followed sk95890 - How to configure SSH authentication on Gaia OS using RSA key files , but the problem is that the user cannot type in any GAIA commands. I then tried changing the uid of the user to uid=0, but that broke the authentication piece of it and I have to type in passwords. Anyone know of a way this can be accomplished with uid=0 account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize in advance if this is a double post from the day before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:13:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8001#M388</guid>
      <dc:creator>Bill_Ng</dc:creator>
      <dc:date>2018-07-12T13:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8002#M389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally when you call ssh from a script, it's done in non-interactive mode, meaning you cannot interactively enter commands.&lt;/P&gt;&lt;P&gt;Can you share with us the relevant&amp;nbsp;script fragment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:11:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8002#M389</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-07-13T10:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8003#M390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dameon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use 'ssh -i /home/user1/.ssh/id_rsa 10.10.10.10 fw ver'.&amp;nbsp; user1 was created within the GAIA portal with uid=0.&amp;nbsp; The problem is that I can't get user1 to use the id_rsa file correctly to authenticate to the gateway.&amp;nbsp; It still prompts me for a password.&amp;nbsp; I noticed that when I created the rsa key it actually put it in /home/admin/.ssh.&amp;nbsp; If I changed the uid to 103 or something else I can use the id_rsa fine, but I can't fun the GAIA commands like 'fw ver, cphaprob stat' and others.&lt;/P&gt;&lt;P&gt;Hope that makes sense.&amp;nbsp;&amp;nbsp;Let me know if you need more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 14:42:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8003#M390</guid>
      <dc:creator>Bill_Ng</dc:creator>
      <dc:date>2018-07-13T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8004#M391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What error do you get with that SSH command?&lt;/P&gt;&lt;P&gt;I suspect the issue is that the environment variables aren't getting set correctly for this other user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 15:39:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8004#M391</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-07-13T15:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8005#M392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not getting an error per se. It's still prompting me for password to sign&amp;nbsp;when I run that command from my management station to the gateway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 16:48:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8005#M392</guid>
      <dc:creator>Bill_Ng</dc:creator>
      <dc:date>2018-07-13T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8006#M393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the default 'admin' to authenticate to the gateway with rsa key.&amp;nbsp; The shell for 'admin' is /etc/cli.sh.&amp;nbsp; I want to keep the admin in clish.&amp;nbsp; So I created an admin-like user from the portal named 'user1' and changed the shell for that account to /bin/bash.&amp;nbsp; I followed all the same steps I did with the default 'admin' account.&amp;nbsp; I noticed when 'ssh-keygen' for the user1 account it by default wants to write it to /home/admin/.ssh not /home/user1/.ssh.&amp;nbsp; I did change the location to /home/user1/.ssh/ and named the file user1_rsa.&amp;nbsp; It created user1_rsa and user1_rsa.pub. and at the end of the file it puts in &lt;A href="mailto:admin@managementservername"&gt;admin@managementservername &lt;/A&gt;and not &lt;A href="mailto:user1@managementservername"&gt;user1@managementservername&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 18:07:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8006#M393</guid>
      <dc:creator>Bill_Ng</dc:creator>
      <dc:date>2018-07-13T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8007#M394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just put content of rsa key from&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;/home/admin/.ssh into ".ssh/authorized_keys" under user where you are running script and execute ssh like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;ssh my_test_user&lt;A href="mailto:user@ip_address"&gt;@ip_address&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;On remote host you need to have created user "my_test_user", create hidden folder .ssh under /home/my_test_user/,&amp;nbsp; create file "authorized_keys" in that folder and put rsa key already generated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 19:34:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8007#M394</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2018-07-13T19:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8008#M395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then the other question is why would you want to run a SSH session from management to the GW? Why not use cprid to execute a script on the GW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 20:56:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8008#M395</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-07-13T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8009#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, the best option.&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101047"&gt;more info (including script) here.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 18:47:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8009#M396</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2018-07-14T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: SSH authentication using RSA for uid=0</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8010#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jozko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp; That did the trick for SSH.&amp;nbsp; It works now with the other ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Maarten/Jozko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never knew of or have used 'cprid_util'.&amp;nbsp; In looking at link it looks like it will do the trick as well if not better using SIC.&amp;nbsp; I'll start playing around with cprid_util as well.&amp;nbsp; I was a little leary in trying to make ssh work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both so much for pointing me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 16:28:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SSH-authentication-using-RSA-for-uid-0/m-p/8010#M397</guid>
      <dc:creator>Bill_Ng</dc:creator>
      <dc:date>2018-07-16T16:28:41Z</dc:date>
    </item>
  </channel>
</rss>

