New Remote Repository Problem

gw1500se
gw1500se
I've created a remote repository (/usr/git/StokerOS.git) using: git --bare init I have SSH working on my local host so that no password is required and using port 26. ssh [email]dap@myhost.com[/email] I set the URL: git remote set-url origin [email]dap@myhost.com/usr/git/DAP_StokerOS.git[/email] The problem occurs when I try to push: git push --set-upstream origin master fatal: 'dap@myhost.com/usr/git/DAP_StokerOS.git' does not appear to be a git repository fatal: Could not read from remote repository. This seems to me to be a connection issue since the response comes back instantly. It does not seem to me to have taken enough time to even log in to the remote. I am guessing git is failing to connect to the remote host rather than actually trying to access that directory. Does git use SSH differently than from command line? How can I debug this? TIA.

Last updated

gw1500se
gw1500se
Never mind. It is the git syntax that is non-standard for SSH. A colon ':' needs to follow the host name, not a slash '/'.

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
1691 views