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 
<http://doc.sagemath.org/html/en/developer/git_trac.html> 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.

On Thursday, February 20, 2020 at 4:11:28 PM UTC+5:30, Dima Pasechnik wrote:
>
> have you created an ssh  key pair? What is the output of 
>
> ls -al ~/.ssh/ 
>
> ? 
>
> On Thu, Feb 20, 2020 at 10:55 AM varenyam bakshi <varen...@gmail.com> 
> wrote: 
> > 
> > sorry but it is still not working 
> > 
> > On Wed, Feb 19, 2020 at 7:16 PM E. Madison Bray <erik...@gmail.com> 
> wrote: 
> >> 
> >> 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. 
> >> 
> >> -- 
> >> 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/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. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CANcZkcL7OpaJD5LwN_vuDF3ndyOKVe5VQ8FZMv2pf7SRyLYoLw%40mail.gmail.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-devel+unsubscr...@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.

Reply via email to