-
Notifications
You must be signed in to change notification settings - Fork 671
after add id_rsa.pub to server, but still need input password. #1419
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
Comments
Do you push via SSH? What does your |
Have you tried if you can use SSH against the server? |
|
when I do command as below ▸ ssh -l yangyongsheng -i ~/.ssh/id_rsa -p 29418 10.20.52.50
It just stoke. When i changed the port 2948 to 12390 as i configed, still let me input password.
|
Thank you for looking into this. |
I tested this with Gitblit running on Linux. A ssh-rsa public key could be added to the user profile and also showed up under the list of keys. Pulling and pushing with SSH immediately worked with the key where before the password was requested. If this problem persists for you, we will need more detailed information, like server logs, SSH key type, SSH debug logs, etc. |
What SSH Client are you using? Does it still support RSA keys? |
I use sshd version as:
I always use sshd RSA keys with github server. Could it be the Windows server firewall? |
But this is from a SSH server. The question is if your SSH client that you use on you machine on which you pull with git supports ssh-rsa keys. |
This is a SSH exchange when the client does not support RSA keys anymore and your only key on the Gitblit server is a RSA key:
If the client still accepts RSA keys, then it would work, as seen here:
Maybe running your ssh command with |
I'm sorry for that use the sshd command, I test with your guide as:
|
So the server does not accept your key. And does it match your key? |
I just noticed these lines in your output:
Googling this, it turns out that this is often because the client does not support the SHA-1 algorithm for RSA anymore. A temporary work around would be to enable it again with the following line in your client configuration: Gitblit 1.10.0 will add support for ecdsa and ed25519 key types. Only later versions will add support for RSA keys with SHA-256 algorithms. |
thanks,i will test this later。 |
I'm sorry to reply you so late, I upgrade the laotop linux fedora 32 to fedora 36,now the ssh version is ▸ ssh -V
OpenSSH_8.8p1, OpenSSL 3.0.5 5 Jul 2022
▸ cat /etc/ssssh -Q key
ssh-ed25519
[email protected]
[email protected]
[email protected]
ssh-rsa
ssh-dss
ecdsa-sha2-nistp256
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
And I add line in file /etc/ssh/ssh_config as
But I still couldn't connect the gitblit server. OpenSSH_8.8p1, OpenSSL 3.0.5 5 Jul 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: configuration requests final Match pass
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: Connecting to 10.20.52.50 [10.20.52.50] port 12390.
debug1: Connection established.
debug1: identity file /home/red/.ssh/id_rsa type 0
debug1: identity file /home/red/.ssh/id_rsa-cert type -1
debug1: identity file /home/red/.ssh/id_rsa type 0
debug1: identity file /home/red/.ssh/id_rsa-cert type -1
debug1: identity file /home/red/.ssh/id_dsa type -1
debug1: identity file /home/red/.ssh/id_dsa-cert type -1
debug1: identity file /home/red/.ssh/id_ecdsa type -1
debug1: identity file /home/red/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/red/.ssh/id_ed25519 type -1
debug1: identity file /home/red/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.8
debug1: Remote protocol version 2.0, remote software version Gitblit_v1.9.3 (SSHD-CORE-1.2.0-NIO2)
debug1: compat_banner: no match: Gitblit_v1.9.3 (SSHD-CORE-1.2.0-NIO2)
debug1: Authenticating to 10.20.52.50:12390 as 'yangyongsheng'
debug1: load_hostkeys: fopen /home/red/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: host key algorithm: (no match)
Unable to negotiate with 10.20.52.50 port 12390: no matching host key type found. Their offer: ssh-rsa,ssh-dss
|
You also need: |
@flaix When will gitblit 1.10.0 be released? |
This is a good question without a good answer. While I sure would like to see that this year, my guess is more like February or March. |
Do you need help? Anything I can do? |
I have moved this to discussion #1440 |
thanks,after I add both these lines in file /etc/ssh/ssh_config
It's ok now. |
After I add id_rsa.pub to my profile from web ui,
then when I push to repos, I still get the prompt to let me input password as below:
The text was updated successfully, but these errors were encountered: