S
S
Svyatoslav Khusamov2018-06-01 12:37:48
git
Svyatoslav Khusamov, 2018-06-01 12:37:48

Why is git accessing SSH even though HTTPS is specified?

I do the operation and the answer comes that there is no access and that he is trying to get access via SSH.
Although the command git remote -v shows that access should go to HTTPS.
What am I doing wrong?

> git push :refs/tags/v6.5.3-57
ssh: connect to host  port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

> git remote -v
origin  https://********.git (fetch)
origin  https://********.git (push)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2018-06-01
@khusamov

You should write git push origin :refs/tags/v6.5.3-57
or better git push -d origin tag v6.5.3-57
In your entry git push :refs/tags/v6.5.3-57 git tries to push the current branch to a server with an empty name along the path refs/tags/v6.5.3-57
https://git-scm.com/docs/git-push#_git_urls_a_id_urls_a
An alternative scp-like syntax may also be used with the ssh protocol:

  • host.xz:path/to/repo.git/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question