unable to connect to git trac server

116 views
Skip to first unread message

varenyam bakshi

unread,
Feb 18, 2020, 6:17:17 AM2/18/20
to sage-devel
I followed the instructions given in sage developer's guide but i am not being authenticated. I checked it using the basic gitolite commands given in the guide

git-trac-error.png

it is showing this error
please help

E. Madison Bray

unread,
Feb 19, 2020, 8:46:31 AM2/19/20
to sage-devel
On Tue, Feb 18, 2020 at 12:17 PM varenyam bakshi <varen...@gmail.com> wrote:
>
> I followed the instructions given in sage developer's guide but i am not being authenticated. I checked it using the basic gitolite commands given in the guide
> ssh g...@trac.sagemath.org info
>
> it is showing this error
> please help

Seems to work for me. If you have multiple SSH keys on your system,
make sure that you are connecting using the correct key for
identification. This is done by running `ssh -i <identity_file>`
where `<identity_file>` is the full path to your SSH private key.

You can also add this permanently to your local SSH client
configuration, typically found in `~/.ssh/config`. This allows
per-site SSH client configuration, for example:

Host git.sagemath.org
Hostname git.sagemath.org
IdentityFile /path/to/correct/ssh-private-key

Ensure also that you have gone to
https://trac.sagemath.org/prefs/sshkeys and supplied your *public*
key.

varenyam bakshi

unread,
Feb 20, 2020, 4:55:01 AM2/20/20
to sage-...@googlegroups.com
sorry but it is still not working

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAOTD34axP0un1h5OEmVpicV%3D2m0ZSnRFV0KW4is_3V_Cbhx29w%40mail.gmail.com.


--
regards
varenyam bakshi
reply for ssh key.png

Dima Pasechnik

unread,
Feb 20, 2020, 5:41:28 AM2/20/20
to sage-devel
have you created an ssh key pair? What is the output of

ls -al ~/.ssh/

?
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CANcZkcL7OpaJD5LwN_vuDF3ndyOKVe5VQ8FZMv2pf7SRyLYoLw%40mail.gmail.com.

E. Madison Bray

unread,
Feb 21, 2020, 9:05:08 AM2/21/20
to sage-devel
You still need to provide a host to connect to. In your screenshot
(posting screenshots is not necessary, you can just copy/paste the
terminal output), you just ran `ssh -i ~/.ssh/id_rsa`. I didn't say
this explicitly but it was implicit that that's just one flag to ssh;
other options still need to follow. That said ~/.ssh/id_rsa is the
default so if that's really the correct SSH key you shouldn't need to
provide it. Did you provide trac.sagemath.org your public key as I
suggested, and if so what exactly did you do?

On Thu, Feb 20, 2020 at 10:55 AM varenyam bakshi <varen...@gmail.com> wrote:
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CANcZkcL7OpaJD5LwN_vuDF3ndyOKVe5VQ8FZMv2pf7SRyLYoLw%40mail.gmail.com.

varenyam bakshi

unread,
Feb 21, 2020, 9:26:46 AM2/21/20
to sage-...@googlegroups.com
i copy pasted it in the ssh key under preference section 



--
regards
varenyam bakshi

DIVESH KUMAR

unread,
Feb 21, 2020, 10:32:04 AM2/21/20
to sage-devel
Hey I am facing a similar problem in configuring git with trac using the
git trac config --user USERNAME --pass 'PASSWORD

command given in this link but ssh authentications fails.
while using 
git trac config --user USERNAME --pass 'PASSWORD

I get this error:
Saved trac username.
Saved trac password.
Trac xmlrpc URL:
    https://trac.sagemath.org/xmlrpc (anonymous)
    https://trac.sagemath.org/login/xmlrpc (authenticated)
    realm sage.math.washington.edu
Using token-based authentication with the provided JWT token
generated by the Trac server.  If a username and password were
configured as well, the token takes priority.  To unset the
token use:

    git trac config --token=

Retrieving SSH keys...
Traceback (most recent call last):
  File "/home/diveshcode/git-trac-command/bin/git-trac", line 17, in <module>
    cmdline.launch()
  File "/home/diveshcode/git-trac-command/git_trac/cmdline.py", line 284, in launch
    app.print_config()
  File "/home/diveshcode/git-trac-command/git_trac/app.py", line 391, in print_config
    for key in self.trac.get_ssh_fingerprints():
  File "/home/diveshcode/git-trac-command/git_trac/trac_server.py", line 111, in get_ssh_fingerprints
    for key in self.get_ssh_keys():
  File "/home/diveshcode/git-trac-command/git_trac/trac_server.py", line 103, in get_ssh_keys
    return self.authenticated_proxy.sshkeys.getkeys()
  File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1283, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/home/diveshcode/git-trac-command/git_trac/token_transport.py", line 35, in single_request
    raise TracConnectionError(e.reason)
git_trac.trac_error.TracConnectionError: CERTIFICATE_VERIFY_FAILED



output of this is
ls -al ~/.ssh/
 
total 20
drwx------  2 diveshcode diveshcode 4096 Feb  8 11:14 .
drwxr-xr-x 73 diveshcode diveshcode 4096 Feb 21 18:08 ..
-rw-------  1 diveshcode diveshcode 1675 Feb  8 11:11 id_rsa
-rw-r--r--  1 diveshcode diveshcode  401 Feb  8 11:11 id_rsa.pub
-rw-r--r--  1 diveshcode diveshcode  444 Feb  8 11:14 known_hosts


while output of this is
ln -s `pwd`/git-trac ~/bin/


ln: target '/home/diveshcode/bin/' is not a directory: No such file or directory


and the $PATH stores this.
echo $PATH
/home/diveshcode/bin:/home/diveshcode/git-trac-command/bin:/home/diveshcode/kde/src/kdesrc-build:/home/diveshcode/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/ssl/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


Been stuck on this for days any advice would be very helpful.
>> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAOTD34axP0un1h5OEmVpicV%3D2m0ZSnRFV0KW4is_3V_Cbhx29w%40mail.gmail.com.
>
>
>
> --
> regards
> varenyam bakshi
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.

Dima Pasechnik

unread,
Feb 21, 2020, 11:42:53 AM2/21/20
to sage-devel
I suggest that you try creating a small git repo on github and try to push to it and pull from it. If it doesn't work then you have a problem with a firewall or something like that.

To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/92073ab9-625b-4f71-a342-00eab219b364%40googlegroups.com.

varenyam bakshi

unread,
Feb 21, 2020, 12:19:03 PM2/21/20
to sage-...@googlegroups.com
i typed the following command 

and here is the output

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:HfxdGoZjCYKxyWtGVeElPM8HhSugcRM322WH4qxHBoc.
Please contact your system administrator.
Add correct host key in /home/uranium/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/uranium/.ssh/known_hosts:1
  remove with:
  ssh-keygen -f "/home/uranium/.ssh/known_hosts" -R "trac.sagemath.org"
ECDSA host key for trac.sagemath.org has changed and you have requested strict checking.
Host key verification failed.

also i am unable to run 
$git trac try <ticket no.>
or
$git trac checkout <ticket no.>



--
regards
varenyam bakshi

Dima Pasechnik

unread,
Feb 21, 2020, 5:02:36 PM2/21/20
to sage-devel
On Fri, Feb 21, 2020 at 6:19 PM varenyam bakshi <varen...@gmail.com> wrote:
>
> i typed the following command
> $ssh g...@trac.sagemath.org info
>
> and here is the output
>
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
> It is also possible that a host key has just been changed.
> The fingerprint for the ECDSA key sent by the remote host is
> SHA256:HfxdGoZjCYKxyWtGVeElPM8HhSugcRM322WH4qxHBoc.
> Please contact your system administrator.
that's what I am geting now:

SHA256:4Op/q3b5792x+F1lHSKRi5UIORAPDlIFVA5cUq9YVXI

weird - or perhaps ir is not as stable as we think.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CANcZkc%2Bgx5aZc892LKJ_yEETsMmH9w1xx%3DeLw-i%3Dw_F6M%2B4-%3DQ%40mail.gmail.com.

DIVESH KUMAR

unread,
Feb 22, 2020, 5:47:35 AM2/22/20
to sage-devel
I couldn't push into a test repository in github the error was
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/diveshkr-code/Testing-git.git/'

it's probaly because my remote origin in .git/config is different than my url(it is somehow set to https://github.com/cubeton/mynewrepository.git guess I fucked up somewhere) how do i change this?

DIVESH KUMAR

unread,
Feb 23, 2020, 9:33:04 AM2/23/20
to sage-devel
I am able to push and pull now to my repository but still am getting this error any idea why it's still happening. Thanks a lot for your help so far.
Saved trac username.
Saved trac password.
Trac xmlrpc URL:
    https://trac.sagemath.org/xmlrpc (anonymous)
    https://trac.sagemath.org/login/xmlrpc (authenticated)
    realm sage.math.washington.edu
Using token-based authentication with the provided JWT token
generated by the Trac server.  If a username and password were
configured as well, the token takes priority.  To unset the
token use:

    git trac config --token=

Retrieving SSH keys...
Traceback (most recent call last):
  File "/home/diveshcode/.local/bin/git-trac", line 17, in <module>
    cmdline.launch()
  File "/home/diveshcode/.local/lib/python2.7/site-packages/git_trac/cmdline.py", line 284, in launch
    app.print_config()
  File "/home/diveshcode/.local/lib/python2.7/site-packages/git_trac/app.py", line 391, in print_config
    for key in self.trac.get_ssh_fingerprints():
  File "/home/diveshcode/.local/lib/python2.7/site-packages/git_trac/trac_server.py", line 111, in get_ssh_fingerprints
    for key in self.get_ssh_keys():
  File "/home/diveshcode/.local/lib/python2.7/site-packages/git_trac/trac_server.py", line 103, in get_ssh_keys
    return self.authenticated_proxy.sshkeys.getkeys()
  File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1283, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/home/diveshcode/.local/lib/python2.7/site-packages/git_trac/token_transport.py", line 35, in single_request
    raise TracConnectionError(e.reason)
git_trac.trac_error.TracConnectionError: CERTIFICATE_VERIFY_FAILED

>>> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/92073ab9-625b-4f71-a342-00eab219b364%40googlegroups.com.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq1z4Gz-8r8GWNKBoXhzQivbUQ%3D%2BLC0a458WbJej-bDE6g%40mail.gmail.com.
>
>
>
> --
> regards
> varenyam bakshi
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.

Dima Pasechnik

unread,
Feb 23, 2020, 10:02:41 AM2/23/20
to sage-devel
Could you push a branch using "plain" git?
Assuming the output of

git remote -v

contains "trac g...@trac.sagemath.org:sage.git (push)"

you should be able to push a branch like this:

git push trac HEAD:u/gh-diveshkr-code/test1
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/3b90e72a-673b-4109-b618-61794b7b6b9f%40googlegroups.com.

Sachin Saw

unread,
Mar 22, 2020, 11:05:37 AM3/22/20
to sage-devel
Hey, I couldn't ssh into g...@trac.sagemath.org
I am using ubuntu 18.04 (LTS) 64-bit version
is in the screenshot,

Screenshot from 2020-03-22 19-56-43.png

Please heip

Vincent Delecroix

unread,
Mar 22, 2020, 11:08:43 AM3/22/20
to sage-...@googlegroups.com
Of course you can not ssh to trac.sagemath.org. What are you
trying to do?

Le 22/03/2020 à 15:47, Sachin Saw a écrit :
> Hey, I couldn't ssh into g...@trac.sagemath.org
> I am using ubuntu 18.04 (LTS) 64-bit version
> The output of some command listed in
> http://doc.sagemath.org/html/en/developer/git_trac.html#trac-tickets-and-git-branches
> is in the screenshot,
>
> [image: Screenshot from 2020-03-22 19-56-43.png]
> Please heip
>
> On Tuesday, February 18, 2020 at 4:47:17 PM UTC+5:30, varenyam bakshi wrote:
>>
>> I followed the instructions given in sage developer's guide but i am not
>> being authenticated. I checked it using the basic gitolite commands given
>> in the guide
>> ssh g...@trac.sagemath.org <javascript:> info
Reply all
Reply to author
Forward
0 new messages