Server: CentOS 5.7
Local machine: Macbook Pro, regular terminal client
git clone --bare ssh://firstname.lastname@example.org/home/projectname/public_html ~/gitrepos/projectname.git
Result: stdin: is not a tty fatal: '/home/projectname/public_html' does not appear to be a git repository fatal: The remote end hung up unexpectedly
I have a Linode that several sites share. I have my own site under
myuser, and I know that I should be getting round to disabling ssh access for
root for security, and doing everything by Sudo. I've added
myuser to the
/etc/sudoers file, with the same permission level as
root. I want
myuser to have global access to do anything on the
site server, as it's the account I'll be using for everything going forward.
projectname is another user with, as far as I can tell, the same permissions as
myuser. These are created using WebHostManager to make a CPanel instance.
I want to be using
myuser to use Git SCM as I have turned off shell access for the
projectname user (plus I'm lazy - I just want one account no matter what site I'm working on).
cd /home/projectname I can
sudo ls OK, but I can't then
sudo cd to move into the directory. My gut says this is the underlying reason the Git Clone is failing, because I don't have the permissions to see inside the
projectname account. There's definitely a working Git repo in
public_html (I can see
.git when I
root), so I don't really believe the error that's coming back.
Thanks in advance for your help.