[git-users] Re: Does git have some kind of logging or verbose format?

2010-03-31 Thread Konstantin Khomoutov
On Mar 31, 5:25 pm, vfclists  wrote:

[...]
> > When I try you suggestion, a message suggesting it is using plink to
> > connect, yet the ssh command works fine.
> > When I try to generate a key it also complains that the id_rsa file
> > already exists. It looks like although it was through Git I set up the
> > ssh key, it is expecting the file to be converted for use with plink
> > before it works.
> > I think I will create a putty connection for the username/server and
> > get the key converted and stored in it. That might work.
>
> Creating a putty session with for the git user on the server, saving
> the user name and adding the ppk to it solved the problem. It looks
> like TortoiseGit uses the id_rsa key, where as msysGit doesn't, as it
> probably expects a putty session with a username and saved .ppk key to
> already exist for use by plink.

I think the truth is that msysgit can be configured in different ways
while being set up.
As I extensively use putty for conrolling my Linux machines, I did not
explore the other means msysgit can use to talk with the servers.

You might find it useful to try another approach to msysgit+plink:
putty comes with a tool called "pageant" which is a SSH agent, that
is, you supply it with one or more private SSH keys, it asks for
passphrases for them and caches these passphrases.
So I use it like this: after logging in, I start a script which spawns
pageant with my ppk key, enter the password and then pageant just sits
in the tray.
Whenever I talk to a sevrer, plink picks the (decrypted) key from
pageant and logs to the server using it. This is hence convenient as I
only have to type my passphrase once per (windows) session. I find it
more usable than creating a specialized session in putty with a key
attached.

Also I think it worth noting that TortoiseGit is a project completely
separated from msysgit; instead, msysgit folks are working on their
own shell-integrated extension called Git Cheetah (it also integrates
to Nautilus on GNOME desktop). Its development appeared to be
stagnated for some time, but the latest preview bundle of msysgit
includes its working version, so you could try it out -- may be it
integrates more nicely with msysgit.

In any case, both msysgit and tortoisegit communities have their own
mailing lists -- if you have any issues with these pieces of software,
it's probably more appropriate to direct such kind of questions there.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: Does git have some kind of logging or verbose format?

2010-03-31 Thread vfclists


On Mar 27, 12:05 am, vfclists  wrote:
> On Mar 26, 5:38 pm, Konstantin Khomoutov  wrote:
>
>
>
> > On Mar 22, 4:57 pm, vfclists  wrote:
>
> > > > > I keep getting
> > > > > Fatal: The remote end hung up unexpectedly
> > > > > and would like to know if there is a way to get git to give more
> > > > > detail on what is going run, like some verbosity level both on the
> > > > > server as well as locally,
> > [...]
> > > My system consists of msysgit and TortoiseGit.
> > > I setup the key using msysgit's ssh-keygen and Tortoise is able to
> > > work with it fine.
> > > I am not using the putty/plink system with msysgit.
>
> > [...]
> > All output seems OK to me so I don't really know what to do next as I
> > use putty suite myself.
> > One thing which could probably shed some light on your issue is to
> > enable "git tracing" before trying the offending command; try
> > something like this:
>
> > C:\repo> set GIT_TRACE=1
> > C:\repo> git remote show origin
>
> > And see what it prints.
>
> When I try you suggestion, a message suggesting it is using plink to
> connect, yet the ssh command works fine.
> When I try to generate a key it also complains that the id_rsa file
> already exists. It looks like although it was through Git I set up the
> ssh key, it is expecting the file to be converted for use with plink
> before it works.
>
> I think I will create a putty connection for the username/server and
> get the key converted and stored in it. That might work.

Creating a putty session with for the git user on the server, saving
the user name and adding the ppk to it solved the problem. It looks
like TortoiseGit uses the id_rsa key, where as msysGit doesn't, as it
probably expects a putty session with a username and saved .ppk key to
already exist for use by plink.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: Does git have some kind of logging or verbose format?

2010-03-26 Thread vfclists


On Mar 26, 5:38 pm, Konstantin Khomoutov  wrote:
> On Mar 22, 4:57 pm, vfclists  wrote:
>
> > > > I keep getting
> > > > Fatal: The remote end hung up unexpectedly
> > > > and would like to know if there is a way to get git to give more
> > > > detail on what is going run, like some verbosity level both on the
> > > > server as well as locally,
> [...]
> > My system consists of msysgit and TortoiseGit.
> > I setup the key using msysgit's ssh-keygen and Tortoise is able to
> > work with it fine.
> > I am not using the putty/plink system with msysgit.
>
> [...]
> All output seems OK to me so I don't really know what to do next as I
> use putty suite myself.
> One thing which could probably shed some light on your issue is to
> enable "git tracing" before trying the offending command; try
> something like this:
>
> C:\repo> set GIT_TRACE=1
> C:\repo> git remote show origin
>
> And see what it prints.

When I try you suggestion, a message suggesting it is using plink to
connect, yet the ssh command works fine.
When I try to generate a key it also complains that the id_rsa file
already exists. It looks like although it was through Git I set up the
ssh key, it is expecting the file to be converted for use with plink
before it works.

I think I will create a putty connection for the username/server and
get the key converted and stored in it. That might work.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: Does git have some kind of logging or verbose format?

2010-03-26 Thread Konstantin Khomoutov
On Mar 22, 4:57 pm, vfclists  wrote:

> > > I keep getting
> > > Fatal: The remote end hung up unexpectedly
> > > and would like to know if there is a way to get git to give more
> > > detail on what is going run, like some verbosity level both on the
> > > server as well as locally,
[...]
> My system consists of msysgit and TortoiseGit.
> I setup the key using msysgit's ssh-keygen and Tortoise is able to
> work with it fine.
> I am not using the putty/plink system with msysgit.
[...]
All output seems OK to me so I don't really know what to do next as I
use putty suite myself.
One thing which could probably shed some light on your issue is to
enable "git tracing" before trying the offending command; try
something like this:

C:\repo> set GIT_TRACE=1
C:\repo> git remote show origin

And see what it prints.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: Does git have some kind of logging or verbose format?

2010-03-22 Thread vfclists


On Mar 21, 1:45 pm, Konstantin Khomoutov  wrote:
> On Mar 20, 9:51 pm, vfclists  wrote:
>
> > I keep getting
>
> > Fatal: The remote end hung up unexpectedly
>
> > and would like to know if there is a way to get git to give more
> > detail on what is going run, like some verbosity level both on the
> > server as well as locally,
>
> > ls -l /var/log/git doesn't seem to exist.
>
> I don't know how to increase the logging level on the client, but I
> want to give some hints.
>
> First, if you're trying to use the SSH transport, the whole thing
> works like this:
> 1) The client part logs in to the remote machine using SSH and spawns
> the git-receive-pack binary on the remote.
> 2) The git-send-pack on the client side is then spawned and these two
> binaries communicate over the SSH link.
> Hence, several problems may arise in this scenario:
> 1) You fail to authenticate properly -- check /var/log/auth.log (or
> whatever it is on your server side). Also try to log in to the remote
> side using plain SSH client.


My system consists of msysgit and TortoiseGit.
I setup the key using msysgit's ssh-keygen and Tortoise is able to
work with it fine.
I am not using the putty/plink system with msysgit.

output from cat /var/log/auth.log | grep git
==
Mar 22 12:02:09 pydev01 sshd[7075]: Accepted publickey for frank from
192.168.1.5 port 1207 ssh2
Mar 22 12:02:09 pydev01 sshd[7077]: pam_unix(sshd:session): session
opened for user frank by (uid=0)

I can do all the operations with Tortoise. Somehow Tortoise seems able
to work with the key whereas msysgit doesn't.

Connecting via ssh (installed msysgit) works fine and uses the key
without. From what I understand Tortoise depends on msysgit so I can
suppose that Tortoise is not using its own additional binaries to
connect.

I prefer to use the command line as it would help with understanding
git better.

> 2) Authentication goes OK but git-receive-pack fails to start (not on
> the PATH of your remote account for instance). You can check it by
> trying to run it while being logged in as a regular user via SSH.

This works. I am able to ssh and run the git-receive-pack command.
> 3) The steps above work OK but the path to the repository you
> specified does not exist or is unreadable or something like this.
> Double check this.
>
I use the correct path. It is the same one used by Tortoies
> Second, if you're trying to use msysgit from the Windows box, you may
> have additional troubles with authentication.
> As you provided exactly zero amount of information about your setup, I
> won't be guessing.

I hope I have added enough to help. The path to the Git also binaries
come before the paths to the Tortoise binaries.

Thanks

Frank

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: Does git have some kind of logging or verbose format?

2010-03-21 Thread Konstantin Khomoutov
On Mar 20, 9:51 pm, vfclists  wrote:

> I keep getting
>
> Fatal: The remote end hung up unexpectedly
>
> and would like to know if there is a way to get git to give more
> detail on what is going run, like some verbosity level both on the
> server as well as locally,
>
> ls -l /var/log/git doesn't seem to exist.

I don't know how to increase the logging level on the client, but I
want to give some hints.

First, if you're trying to use the SSH transport, the whole thing
works like this:
1) The client part logs in to the remote machine using SSH and spawns
the git-receive-pack binary on the remote.
2) The git-send-pack on the client side is then spawned and these two
binaries communicate over the SSH link.
Hence, several problems may arise in this scenario:
1) You fail to authenticate properly -- check /var/log/auth.log (or
whatever it is on your server side). Also try to log in to the remote
side using plain SSH client.
2) Authentication goes OK but git-receive-pack fails to start (not on
the PATH of your remote account for instance). You can check it by
trying to run it while being logged in as a regular user via SSH.
3) The steps above work OK but the path to the repositiry you
specified does not exist or is unreadable or something like this.
Double check this.

Second, if you're trying to use msysgit from the Windows box, you may
have additional troubles with authentication.
As you provided exactly zero amount of information about your setup, I
won't be guessing.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.