Iceberg ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Iceberg ?

Stephane Ducasse-3
On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: 'github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found


Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Myroslava Romaniuk
Have you got a ssh key?

On 21 May 2017 at 12:31, Stephane Ducasse <[hidden email]> wrote:
On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: 'github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found





--
З повагою, 
Мирослава Романюк.
Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
yes and I should publish it on my git account?
I use git daily so I do not get why I should do something different with iceberg/

On Sun, May 21, 2017 at 11:33 AM, Myroslava Romaniuk <[hidden email]> wrote:
Have you got a ssh key?

On 21 May 2017 at 12:31, Stephane Ducasse <[hidden email]> wrote:
On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: 'github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found





--
З повагою, 
Мирослава Романюк.

Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Myroslava Romaniuk
Well it is a bit different with iceberg. Have a look at the FAQ section here, and here's a general guide regarding connecting github with ssh. Let me know if this helps

On 21 May 2017 at 12:35, Stephane Ducasse <[hidden email]> wrote:
yes and I should publish it on my git account?
I use git daily so I do not get why I should do something different with iceberg/

On Sun, May 21, 2017 at 11:33 AM, Myroslava Romaniuk <[hidden email]> wrote:
Have you got a ssh key?

On 21 May 2017 at 12:31, Stephane Ducasse <[hidden email]> wrote:
On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: 'github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found





--
З повагою, 
Мирослава Романюк.




--
З повагою, 
Мирослава Романюк.
Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
Tx I will have a look.

On Sun, May 21, 2017 at 11:43 AM, Myroslava Romaniuk <[hidden email]> wrote:
Well it is a bit different with iceberg. Have a look at the FAQ section here, and here's a general guide regarding connecting github with ssh. Let me know if this helps

On 21 May 2017 at 12:35, Stephane Ducasse <[hidden email]> wrote:
yes and I should publish it on my git account?
I use git daily so I do not get why I should do something different with iceberg/

On Sun, May 21, 2017 at 11:33 AM, Myroslava Romaniuk <[hidden email]> wrote:
Have you got a ssh key?

On 21 May 2017 at 12:31, Stephane Ducasse <[hidden email]> wrote:
On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: 'github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found





--
З повагою, 
Мирослава Романюк.




--
З повагою, 
Мирослава Романюк.

Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

abergel
In reply to this post by Stephane Ducasse-3
I got the very same error. And this is weird because I can commit from the command line or using any Git client. 

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 21, 2017, at 5:31 AM, Stephane Ducasse <[hidden email]> wrote:

On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: '<a href="github://pharo-graphics/Bloc/src" class="">github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found



Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

EstebanLM
Hi, 

is not weird because git uses other authentication services and for now we just implemented ssh/ssh-agent :)
solution is to execute this in command line: 

ssh-add -K ~/.ssh/id_rsa

then it will be ok. 

(I will add an entry for this in the FAQ)

On 22 May 2017, at 20:48, Alexandre Bergel <[hidden email]> wrote:

I got the very same error. And this is weird because I can commit from the command line or using any Git client. 

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 21, 2017, at 5:31 AM, Stephane Ducasse <[hidden email]> wrote:

On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    repository: '<a href="github://pharo-graphics/Bloc/src" class="">github://pharo-graphics/Bloc/src';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found




Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
Yes please do because I had no idea and I was trying to look at the setting but without results. 

On Mon, May 22, 2017 at 8:53 PM, Esteban Lorenzano <[hidden email]> wrote:
Hi, 

is not weird because git uses other authentication services and for now we just implemented ssh/ssh-agent :)
solution is to execute this in command line: 

ssh-add -K ~/.ssh/id_rsa

then it will be ok. 

(I will add an entry for this in the FAQ)


On 22 May 2017, at 20:48, Alexandre Bergel <[hidden email]> wrote:

I got the very same error. And this is weird because I can commit from the command line or using any Git client. 

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 21, 2017, at 5:31 AM, Stephane Ducasse <[hidden email]> wrote:

On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found





Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
I get

ssh-add -K ~/.ssh/id_rsa

Error connecting to agent: No such file or directory



On Mon, May 22, 2017 at 9:46 PM, Stephane Ducasse <[hidden email]> wrote:
Yes please do because I had no idea and I was trying to look at the setting but without results. 

On Mon, May 22, 2017 at 8:53 PM, Esteban Lorenzano <[hidden email]> wrote:
Hi, 

is not weird because git uses other authentication services and for now we just implemented ssh/ssh-agent :)
solution is to execute this in command line: 

ssh-add -K ~/.ssh/id_rsa

then it will be ok. 

(I will add an entry for this in the FAQ)


On 22 May 2017, at 20:48, Alexandre Bergel <[hidden email]> wrote:

I got the very same error. And this is weird because I can commit from the command line or using any Git client. 

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 21, 2017, at 5:31 AM, Stephane Ducasse <[hidden email]> wrote:

On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found






Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Max Leske
ls -la ~/.ssh wil probably show you that you don’t have a key named “id_rsa”. You have to specify the correct file (e.g. my github key is named “github”).

HTH,
Max

On 22 May 2017, at 21:47, Stephane Ducasse <[hidden email]> wrote:

I get

ssh-add -K ~/.ssh/id_rsa

Error connecting to agent: No such file or directory



On Mon, May 22, 2017 at 9:46 PM, Stephane Ducasse <[hidden email]> wrote:
Yes please do because I had no idea and I was trying to look at the setting but without results. 

On Mon, May 22, 2017 at 8:53 PM, Esteban Lorenzano <[hidden email]> wrote:
Hi, 

is not weird because git uses other authentication services and for now we just implemented ssh/ssh-agent :)
solution is to execute this in command line: 

ssh-add -K ~/.ssh/id_rsa

then it will be ok. 

(I will add an entry for this in the FAQ)


On 22 May 2017, at 20:48, Alexandre Bergel <[hidden email]> wrote:

I got the very same error. And this is weird because I can commit from the command line or using any Git client. 

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 21, 2017, at 5:31 AM, Stephane Ducasse <[hidden email]> wrote:

On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found







Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
In fact I checked before and to me it looks ok. 
Now should I have the same name for the key?
trying now. 

I do not get why I can use github all the time and not with pharo. 


total 216
drwx------   21 ducasse  admin    714 May 25 18:13 ./
drwxr-xr-x@ 118 ducasse  staff   4012 Apr 28 16:25 ../
-rw-r--r--    1 ducasse  admin  12288 Mar 20  2015 .config.swp
-rw-------    1 ducasse  admin   1766 Jan 10  2016 2016RSA
-rw-r--r--@   1 ducasse  admin    401 Jan 10  2016 2016RSA.pub
-rw-r--r--    1 ducasse  staff  10054 Sep 30  2009 KnowHOST
-rw-r--r--@   1 ducasse  staff    238 Mar  7  2011 authorized_keys
-rw-r--r--@   1 ducasse  staff   1765 Jun 29  2016 config
-rw-------@   1 ducasse  staff   1697 Jun  1  2010 esug.pem
-rw-------    1 ducasse  staff   1743 Aug 26  2011 github_rsa
-rw-r--r--    1 ducasse  staff    389 Aug 26  2011 github_rsa.pub
-rw-------    1 ducasse  staff    668 Sep 30  2009 id_dsa
-rw-r--r--    1 ducasse  staff    609 Sep 30  2009 id_dsa.pub
-rw-------    1 ducasse  staff    951 Sep 30  2009 id_rsa
-rw-r--r--    1 ducasse  staff    238 Sep 30  2009 id_rsa.pub
-rw-r--r--@   1 ducasse  staff  17378 Jul 19  2016 known2
-rw-r--r--    1 ducasse  admin    413 May 25 18:24 known_hosts
-rw-r--r--    1 ducasse  staff    609 Sep 30  2009 mail
-rw-------    1 ducasse  staff   1675 Jun  1  2010 newRSAA
-rw-r--r--    1 ducasse  staff    406 Jun  1  2010 newRSAA.pub




On Mon, May 22, 2017 at 10:14 PM, Max Leske <[hidden email]> wrote:
ls -la ~/.ssh wil probably show you that you don’t have a key named “id_rsa”. You have to specify the correct file (e.g. my github key is named “github”).

HTH,
Max

On 22 May 2017, at 21:47, Stephane Ducasse <[hidden email]> wrote:

I get

ssh-add -K ~/.ssh/id_rsa

Error connecting to agent: No such file or directory



On Mon, May 22, 2017 at 9:46 PM, Stephane Ducasse <[hidden email]> wrote:
Yes please do because I had no idea and I was trying to look at the setting but without results. 

On Mon, May 22, 2017 at 8:53 PM, Esteban Lorenzano <[hidden email]> wrote:
Hi, 

is not weird because git uses other authentication services and for now we just implemented ssh/ssh-agent :)
solution is to execute this in command line: 

ssh-add -K ~/.ssh/id_rsa

then it will be ok. 

(I will add an entry for this in the FAQ)


On 22 May 2017, at 20:48, Alexandre Bergel <[hidden email]> wrote:

I got the very same error. And this is weird because I can commit from the command line or using any Git client. 

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 21, 2017, at 5:31 AM, Stephane Ducasse <[hidden email]> wrote:

On mac with latest pharo vm and latest pharo 60
Metacello new
    baseline: 'Bloc';
    load:#core

Then I got LGit_GIT_ERROR no ssh-agent suitable credentials found








Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

abergel
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre

Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre


Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

EstebanLM
again, ssh-agent is one way to authenticate. 
it can be not the best but it is the only one we could implement with the time we get (also, ssh-agent is “common” while others are platform specific and then they will work just in the intended platform). With time, we want to implement all, but for now is what we have.

One way to solve this *without* using ssh-agent (for example, something we recommend now for windows, since ssh-agent has problems for people not used to it) is to use “custom keys”, which now in iceberg is done in settings (as explained on the FAQ), or running this: 

IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
publicKey: '/Users/esteban/.ssh/id_rsa.pub’;
privateKey: '/Users/esteban/.ssh/id_rsa’

of course, you need to modify paths to your user :)
of course (2), you may add that to a startup action, so you do not need to execute that each time. 

cheers, 
Esteban

On 25 May 2017, at 22:12, Stephane Ducasse <[hidden email]> wrote:

I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre



Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

EstebanLM
In reply to this post by abergel

> On 25 May 2017, at 20:20, Alexandre Bergel <[hidden email]> wrote:
>
>> I do not get why I can use github all the time and not with pharo.
>
> That is an excellent question

simple answer: resources (time/money/etc.).

Esteban

>
> Alexandre
>


Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

EstebanLM
In reply to this post by EstebanLM
… and I just enhanced the FAQ with this explanation: https://github.com/pharo-vcs/iceberg/blob/master/README.md#faq

Esteban, killing the 3G roaming :P

On 25 May 2017, at 23:31, Esteban Lorenzano <[hidden email]> wrote:

again, ssh-agent is one way to authenticate. 
it can be not the best but it is the only one we could implement with the time we get (also, ssh-agent is “common” while others are platform specific and then they will work just in the intended platform). With time, we want to implement all, but for now is what we have.

One way to solve this *without* using ssh-agent (for example, something we recommend now for windows, since ssh-agent has problems for people not used to it) is to use “custom keys”, which now in iceberg is done in settings (as explained on the FAQ), or running this: 

IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
publicKey: '/Users/esteban/.ssh/id_rsa.pub’;
privateKey: '/Users/esteban/.ssh/id_rsa’

of course, you need to modify paths to your user :)
of course (2), you may add that to a startup action, so you do not need to execute that each time. 

cheers, 
Esteban

On 25 May 2017, at 22:12, Stephane Ducasse <[hidden email]> wrote:

I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre




Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
In reply to this post by EstebanLM
Thanks esteban!

Do you have to run eval `ssh-agent -s` on your machine?
If so then we should add in the FAQ.
I cannot guess it.

Then can you add this information to the Iceberg FAQ?

Stef

On Thu, May 25, 2017 at 11:31 PM, Esteban Lorenzano <[hidden email]> wrote:
again, ssh-agent is one way to authenticate. 
it can be not the best but it is the only one we could implement with the time we get (also, ssh-agent is “common” while others are platform specific and then they will work just in the intended platform). With time, we want to implement all, but for now is what we have.

One way to solve this *without* using ssh-agent (for example, something we recommend now for windows, since ssh-agent has problems for people not used to it) is to use “custom keys”, which now in iceberg is done in settings (as explained on the FAQ), or running this: 

IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
publicKey: '/Users/esteban/.ssh/id_rsa.pub’;
privateKey: '/Users/esteban/.ssh/id_rsa’

of course, you need to modify paths to your user :)
of course (2), you may add that to a startup action, so you do not need to execute that each time. 

cheers, 
Esteban

On 25 May 2017, at 22:12, Stephane Ducasse <[hidden email]> wrote:

I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre




Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Stephane Ducasse-3
In reply to this post by EstebanLM
Tx
For me I can any action required. I just need to be guided. 

Stef

On Thu, May 25, 2017 at 11:46 PM, Esteban Lorenzano <[hidden email]> wrote:
… and I just enhanced the FAQ with this explanation: https://github.com/pharo-vcs/iceberg/blob/master/README.md#faq

Esteban, killing the 3G roaming :P


On 25 May 2017, at 23:31, Esteban Lorenzano <[hidden email]> wrote:

again, ssh-agent is one way to authenticate. 
it can be not the best but it is the only one we could implement with the time we get (also, ssh-agent is “common” while others are platform specific and then they will work just in the intended platform). With time, we want to implement all, but for now is what we have.

One way to solve this *without* using ssh-agent (for example, something we recommend now for windows, since ssh-agent has problems for people not used to it) is to use “custom keys”, which now in iceberg is done in settings (as explained on the FAQ), or running this: 

IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
publicKey: '/Users/esteban/.ssh/id_rsa.pub’;
privateKey: '/Users/esteban/.ssh/id_rsa’

of course, you need to modify paths to your user :)
of course (2), you may add that to a startup action, so you do not need to execute that each time. 

cheers, 
Esteban

On 25 May 2017, at 22:12, Stephane Ducasse <[hidden email]> wrote:

I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre





Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

Ben Coman
In reply to this post by EstebanLM


On Fri, May 26, 2017 at 5:31 AM, Esteban Lorenzano <[hidden email]> wrote:
again, ssh-agent is one way to authenticate. 
it can be not the best but it is the only one we could implement with the time we get (also, ssh-agent is “common” while others are platform specific and then they will work just in the intended platform). With time, we want to implement all, but for now is what we have.

One way to solve this *without* using ssh-agent (for example, something we recommend now for windows, since ssh-agent has problems for people not used to it) is to use “custom keys”, which now in iceberg is done in settings (as explained on the FAQ), or running this: 

IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
publicKey: '/Users/esteban/.ssh/id_rsa.pub’;
privateKey: '/Users/esteban/.ssh/id_rsa’

of course, you need to modify paths to your user :)
of course (2), you may add that to a startup action, so you do not need to execute that each time. 

Maybe in some quick-start instructions this should be the default, so people can prove to themselves
it works, then move on to using ssh-agent which has more modes of failure.  Other apps like PuTTY
do this...

btw, I'm curious why the pub key is required?  Isn't it only needed at the other (github) end?

cheers -ben


cheers, 
Esteban

On 25 May 2017, at 22:12, Stephane Ducasse <[hidden email]> wrote:

I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre




Reply | Threaded
Open this post in threaded view
|

Re: Iceberg ?

EstebanLM

On 27 May 2017, at 03:42, Ben Coman <[hidden email]> wrote:



On Fri, May 26, 2017 at 5:31 AM, Esteban Lorenzano <[hidden email]> wrote:
again, ssh-agent is one way to authenticate. 
it can be not the best but it is the only one we could implement with the time we get (also, ssh-agent is “common” while others are platform specific and then they will work just in the intended platform). With time, we want to implement all, but for now is what we have.

One way to solve this *without* using ssh-agent (for example, something we recommend now for windows, since ssh-agent has problems for people not used to it) is to use “custom keys”, which now in iceberg is done in settings (as explained on the FAQ), or running this: 

IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
publicKey: '/Users/esteban/.ssh/id_rsa.pub’;
privateKey: '/Users/esteban/.ssh/id_rsa’

of course, you need to modify paths to your user :)
of course (2), you may add that to a startup action, so you do not need to execute that each time. 

Maybe in some quick-start instructions this should be the default, so people can prove to themselves
it works, then move on to using ssh-agent which has more modes of failure.  Other apps like PuTTY
do this...

but there is a settings there :)
(not as complete as that, but we should arrive)
what I’m thinking is to change the “default” to “ssh-agent or guess”: try to get the ssh-agent credentials, if that fails try to guess based on what is in default directory (.ssh) and if not then raise the exception. Is a hack, but I think it will work. 

Now, in fact ssh-agent works in 99% of the cases when you are out of windows (most people have it configured by default and with default options), the problem is that Stef does not do anything default (which is good, because then is a good border-case detector) :)


btw, I'm curious why the pub key is required?  Isn't it only needed at the other (github) end?

no idea :)
I just know that libgit2 requires it 

cheers, 
Esteban


cheers -ben


cheers, 
Esteban

On 25 May 2017, at 22:12, Stephane Ducasse <[hidden email]> wrote:

I retried
rename all the keys I put in my git account. 

But 
> ssh-add -K ~/.ssh/github_rsa
Error connecting to agent: No such file or directory
> ssh-add -K ~/.ssh/2016RSA
Error connecting to agent: No such file or directory

Apparently I should run
eval `ssh-agent -s`
Now I will try to republish on github. 
anyway I'm not using git in pharo for now. 

Stef

On Thu, May 25, 2017 at 8:20 PM, Alexandre Bergel <[hidden email]> wrote:
> I do not get why I can use github all the time and not with pharo.

That is an excellent question

Alexandre





12