<?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: Unable to use GITFN_PUSH with ssh keys in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698747#M37548</link>
    <description>Got it, that worked for GIT_FN().  Studio's integrated git repos still don't work properly with it, but I'll play with that a bit more; assuming Studio is actually using GIT_FN behind the scenes I can look at the logs and see what's being sent.  Thanks!</description>
    <pubDate>Fri, 13 Nov 2020 18:17:33 GMT</pubDate>
    <dc:creator>snoopy369</dc:creator>
    <dc:date>2020-11-13T18:17:33Z</dc:date>
    <item>
      <title>Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581279#M34477</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;When I try to puch from&amp;nbsp; local copy of develop branch from my machine to the bit bucket server I get an error.&lt;BR /&gt;My code is this&lt;BR /&gt;%let my_local=full_path_of_local_repo;&lt;BR /&gt;%let this_user=my_username;&lt;BR /&gt;%let my_pub_key=full_path_of_public_key;&lt;BR /&gt;%let my_pvt_key=full_path_of_pvt_key;&lt;BR /&gt;data _null_;&lt;BR /&gt;rc =GITFN_PUSH( "&amp;amp;my_local.", "&amp;amp;this_user", "", "&amp;amp;my_pub_key.", "&amp;amp;my_pvt_key.");&lt;BR /&gt;put rc=;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The error is&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Return code from GIT is (12). too many redirects or authentication replays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If I use my username and password it works.&lt;BR /&gt;Git clone works with ssh keys&lt;/P&gt;&lt;P&gt;Any advise?&lt;BR /&gt;Note: I have gone through the sas documentation&amp;nbsp; ( &lt;A href="https://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n10pxql65jtf4sn11m3d6jzcrgcz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n10pxql65jtf4sn11m3d6jzcrgcz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; ) and &lt;STRONG&gt;Zimmerman's&amp;nbsp;&lt;/STRONG&gt; paper (&lt;STRONG&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3057-2019.pdf" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3057-2019.pdf&lt;/A&gt;.)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Looking for something beyond this.&lt;BR /&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 20:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581279#M34477</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-08-14T20:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581345#M34480</link>
      <description>&lt;P&gt;What version of SAS are you running?&amp;nbsp; 9.4M5 or 9.4M6?&lt;/P&gt;
&lt;P&gt;Are you saying the same ssh keys work with&amp;nbsp;&lt;SPAN&gt;GITFN_CLONE? Or do you mean with "git clone" from command-line?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/258846"&gt;@dazimm&lt;/a&gt;, any ideas why this wouldn't work with ssh keys? Perhaps related to the ssh keys needing to be generated a special way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 04:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581345#M34480</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-08-15T04:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581358#M34482</link>
      <description>&lt;P&gt;1. 9.4M6&lt;BR /&gt;2. Yes it is GITFN_CLONE in SAS EG&lt;BR /&gt;3. ssh keys were generated as usual in git bash as follows&lt;BR /&gt;ssh-keygen -t rsa -C "myemail"&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 14:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581358#M34482</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-08-15T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581587#M34488</link>
      <description>&lt;P&gt;Hi Somename,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GITFN_CLONE will work without credentials if the remote repository is public.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try generating your ssh keys with the following command in git bash:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;ssh-keygen -t rsa -m PEM -b 4096 -C “email”&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't work, make sure that the user name parameter is whatever comes before the&amp;nbsp;@ in the ssh url. See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;git&lt;/FONT&gt;&lt;/STRONG&gt;@github.com:sascommunities/sas-global-forum-2019.git&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Danny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 20:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581587#M34488</guid>
      <dc:creator>dazimm</dc:creator>
      <dc:date>2019-08-15T20:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581749#M34496</link>
      <description>&lt;P&gt;Thanks.&lt;BR /&gt;Learn't from admins that repository needs to be cloned using ssh.&lt;BR /&gt;Did that. But now the error message is&amp;nbsp;&lt;BR /&gt;ERROR: Return code from GIT is (23). failed to start SSH session: Unable to exchange encryption keys&lt;BR /&gt;Saw a SAS note&amp;nbsp;&lt;A href="http://support.sas.com/kb/63/549.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/63/549.html&lt;/A&gt; for this error.&lt;BR /&gt;The documentation on the hotfix (&lt;A href="http://ftp.sas.com/techsup/download/hotfix/HF2/D/D9T/D9T006/xx/lax/D9T006la.html)&amp;nbsp;" target="_blank"&gt;http://ftp.sas.com/techsup/download/hotfix/HF2/D/D9T/D9T006/xx/lax/D9T006la.html)&amp;nbsp;&lt;/A&gt; indicates it is for Linux whereas the server OS in my case is&amp;nbsp; WINDOWS SERVER 2016.&lt;BR /&gt;&lt;STRONG&gt;By the way everything (ssh keys) works with git-bash.&lt;/STRONG&gt;&lt;BR /&gt;Thanks everybody for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 16:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/581749#M34496</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-08-16T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698705#M37543</link>
      <description>&lt;P&gt;Looks like this is an issue at my site as well - in Windows, HTTPS works, SSH doesn't, same error code 23 whether in GITFN_x or Studio direct integration, in 9.4 TS1M6.&amp;nbsp; Getting M7 soon hopefully so will report back if it's fixed then, but otherwise looks like HTTPS is the way to go on Windows.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698705#M37543</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-13T16:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698711#M37545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46466"&gt;@snoopy369&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try regenerating the SSH keys you are using with the following command and try again:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;ssh-keygen -t rsa -m PEM -b 4096 -C “email”&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SSH library we use with the git library seems to have issues with some of the newer SSH keygen algorithms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698711#M37545</guid>
      <dc:creator>dazimm</dc:creator>
      <dc:date>2020-11-13T16:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698713#M37546</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/258846"&gt;@dazimm&lt;/a&gt;&amp;nbsp;Does the key need to have a blank passphrase?&amp;nbsp; Or can I add a passphrase?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698713#M37546</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-13T16:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698715#M37547</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46466"&gt;@snoopy369&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, leave the password blank. The Git functions currently do not support password protected SSH keys.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698715#M37547</guid>
      <dc:creator>dazimm</dc:creator>
      <dc:date>2020-11-13T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698747#M37548</link>
      <description>Got it, that worked for GIT_FN().  Studio's integrated git repos still don't work properly with it, but I'll play with that a bit more; assuming Studio is actually using GIT_FN behind the scenes I can look at the logs and see what's being sent.  Thanks!</description>
      <pubDate>Fri, 13 Nov 2020 18:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698747#M37548</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-13T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698751#M37549</link>
      <description>&lt;P&gt;Studio does use the functions behind the scenes. You might need to update the ssh keys in your Git Profile within studio.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 18:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698751#M37549</guid>
      <dc:creator>dazimm</dc:creator>
      <dc:date>2020-11-13T18:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698754#M37550</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/258846"&gt;@dazimm&lt;/a&gt;&amp;nbsp;Looks like Studio is messing things up - it adds a "ssh://" to the username.&amp;nbsp; Not sure if the hotfix that makes this "production" would fix that or not, I believe we have that installed, but will double check during maintenance next week.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 18:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698754#M37550</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-13T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698758#M37551</link>
      <description>&lt;P&gt;Just to be clear, this works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
rc =GITFN_PUSH( "pathtorepo", "matise-joe",
				 "", "pathto/id_rsa.pub", "pathto/id_rsa");
put rc=;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But when I do the Studio integrated version, it runs this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
rc =GITFN_PUSH( "pathtorepo", "ssh://matise-joe",
				 "", "pathto/id_rsa.pub", "pathto/id_rsa");
put rc=;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which of course fails.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 18:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698758#M37551</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-13T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698770#M37552</link>
      <description>&lt;P&gt;I see. The bug occurs within the SASStudio code and not the function code. We addressed this in a hotfix.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 19:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698770#M37552</guid>
      <dc:creator>dazimm</dc:creator>
      <dc:date>2020-11-13T19:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698771#M37553</link>
      <description>Okay, that's what I figured; I thought we had that hotfix in but apparently not.  Will install it next week - thanks again for the help!&lt;BR /&gt;&lt;BR /&gt;(Also, is there a good place/person to send suggestions for future additions to the git integration?  I have a few dozen &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )</description>
      <pubDate>Fri, 13 Nov 2020 19:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698771#M37553</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-13T19:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use GITFN_PUSH with ssh keys</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698801#M37555</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46466"&gt;@snoopy369&lt;/a&gt;&amp;nbsp;I sent you a private message with my email so you can email me directly with suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you can submit suggestions through SAS Communities here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 20:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-use-GITFN-PUSH-with-ssh-keys/m-p/698801#M37555</guid>
      <dc:creator>dazimm</dc:creator>
      <dc:date>2020-11-13T20:23:23Z</dc:date>
    </item>
  </channel>
</rss>

