Git clone output "Error during lookup request: status: 405" with pagure 5.13.3

Install pagure 5.13.3 according to
When I clone a repository, git clone failed after added the ssh public key.
Has anyone else had the similar problem?

And access log

tail -f /var/log/nginx/pagure.access.log - - [22/Apr/2022:15:21:42 +0800] “GET /pv/ssh/checkaccess/ HTTP/1.1” 405 178 “-” “python-requests/2.20.0”

Is client2.test.test a host that resolves from that machine? Do you get a resolution with getent hosts client2.test.test?

If you like to git clone ssh .... the service sshd on client2 has to be active:

systemctl status sshd checks the status
systemctl start sshd start it if it is inactive

Please check and give feedback.

Thank U!
I had solved error 405 after changing the protocal from http to https of APP_URL.
Now APP_URL is set to ‘https://client2.test.test/’.

1 Like

Then you should be able just to use git clone https:// ...?!

1 Like

The URL to use to clone git repositories
Now git clone works normally by https and ssh.

1 Like