-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't access repositories with Git over SSH #1292
Comments
You can't connect through SSH to the Gogs user. |
Then how do you use Git over SSH? On Mon, Jun 1, 2015 at 1:08 AM, Thomas Boerger notifications@github.com
|
Git over SSH is a total different thing. You just can't connect a normal SSH session. |
That's not what the issue is about. The issue is saying that connection to normal SSH works, but when trying to use Git over SSH on the same port, it fails. On Mon, Jun 1, 2015 at 1:11 AM, Thomas Boerger notifications@github.com
|
Seems to be the same problem as #1306 — in fact, your error message says already:
The tl;dr: you need to have your SSH key in your gogs account, not on the system's authorized_keys. |
It's in both. It's added through the gogs account, which then appends it to the gogs user's authorized_keys automatically. |
Then I can't help you, sorry 😦 Ah, in fact the message does say This is probably obvious, so I hope you're not offended, but you're using the git url provided by the gogs UI, right? And does that url provide your non-standard port? It could be that gogs only provides scp-style addresses, which don't allow a port. If that's the case, it's a bug. With a non-standard port, it should look like http://stackoverflow.com/questions/1558719/using-a-remote-repository-with-non-standard-port |
I'm using the one from Gogs. From what I recall, it did include the non-standard port in the url. Anyways, I've since given up on getting it to run on my own machine and have just installed it on a cloud VPS. Working perfectly on that :) |
Looks this thread is finished? Just a note before closing:
This error shows that your request is denied by the SSH server, the Git request does not even get to Gogs. 😂 |
FWIW
Sounds like it was something in your system (global) sshd config 😸 |
here the same message, i solve changing the permission of ssh folder: |
I added an ssh key:
2015/05/25 02:31:23 [T] SSH key added: csu
I am using a non-standard port for ssh. When I try using ssh, I get:
From the above output, it appears that the SSH connection over the port works and that authentication succeeded. However, this happens when I try using Git over SSH:
The text was updated successfully, but these errors were encountered: