I've come across an interesting problem and I literally don't know where to start looking to resolve it!
The VCS machine in our office is running gitweb and my public key is on this machine fine. I can access the repositories from my machine without any problems, using my key.
However, if I am on any kind of remote shell, key authentication does not work! It falls back to password authentication, but the git user is configured to not have a password, so this is no good!
I have confirmed the problem by SSHing into another machine in the office and from there back into my machine. Also, by physically using another machine to SSH into my machine and even by going through a VPN to access my machine from a different network. In all cases, authentication with the git server fails although they are identical commands to those I run locally.
My first reaction was that gitosis (which automatically handles the keys) was misconfigured. It does include a number of additional security options on the keys:
However, the problem is confined to me - other machines seem to be able to authenticate without a problem whether the shell is remote or local, which suggests that it is my SSH that is misconfigured. I did change the default port away from 22 by editing
/etc/ssh/sshd_config but everything else should be at the default values. It's possible someone else has edited the config, so any things to look out for would be appreciated!
My machine is running Ubuntu 9.04 (obviously, upgrading might be a solution). Really, I'm just after a starting point - something to google for to resolve the problem. If this is something simple that someone has come across before then that's fantastic but as I say, I'm really at a loss for now!
Thanks in advance!