-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
ssh 的链接地址不可以使用 #545
Comments
http://gogs.io/docs/intro/troubleshooting.html#git please troubleshooting first. |
文档里没找到相关的说明才跑过来开 issues 的。 |
Causes: there are duplicated SSH keys in ~/.ssh/authorized_keys file, possibly you are/were using GitLab for same system user. Check this one. |
提示信息是这个: Cloning into 'E:\新建文件夹\client_bin... Please make sure you have the correct access rights 跟文档里面说的不一样。 |
Check your |
|
~/.ssh/authorized_keys 检查过,没有重复的 keys 。 |
|
对的,就是问题。事实上访问目录应该是 gogs-repositories/gdop/server.git 而不是 'gdop/server.git' 另,是不是所有的 SSH 都要用 git 用户去访问?也只能用 git 用户去访问? |
What is your
Right, or you can change |
没有配这个 REPO_ROOT_PATH ,没有文档说到这个配置项。 ssh 的地址不能使用 gogs 的注册用户访问? |
If you didn't config this, how can you get Gogs to run? Did you go through |
是的,通过 install 配置的。 |
Then you must have |
是这样写吗? 我的 gogs 版本为: 0.5.0.0913 Beta |
另,升级的时候可以覆盖升级吗? |
REPO_ROOT_PATH = /home/git/gogs-repositories |
This does not change SSH clone URL.
Yes. And, I think the SSH command does not even redirect command to Gogs, because it's handled by your system. So there must be somewhere config wrong or unexpected. |
我是使用二进制的方式安装的,使用的 /install 。 — On Sun, Oct 12, 2014 at 5:31 AM, 无闻 notifications@github.com wrote:
|
通过 ln-s 建立软连接的方法暂时解决这个问题了 |
I met exactly the same problem. Nothing useful from troubleshooting page :-( |
Hi @harry91
So many people says that and turns out they didn't config SSH server right or manually added public keys to |
I haven't modified .ssh/authorize_keys manually. Maybe you can write a wiki about how to generate public/private keys and add public key instead of a simple link to github wiki. I'm still working on it. Clone through HTTP works fine. |
SSH key generate process is all the same, and there is a operation on URL Also, what is the error message you get when you say |
Sorry, I didn't say cannot push. I cannot clone. Clone procedure: Please make sure you have the correct access rights No log from logs under log/ folder or console. |
I'm checking with the auth.log and there's something wrong inside. I'll give you a feedback later. |
Well... based on the error, there are two possible known situations:
|
Good news~! I've finally solved the problem. |
@harry91 no problem, good to hear! |
ssh 的地址显示的为:
git@192.168.0.135:gdop/client_bin.git ,
但实际应该是
git@192.168.0.135:gogs-repositories/gdop/client_bin.git ,
而且 必须要输入 git 用户的密码,而不是 gogs 的用户名密码,请问这个要怎么修改下呢?
谢谢
The text was updated successfully, but these errors were encountered: