logo
down
shadow

What happens when using an SSH key for git authentication then HTTP for clone?


What happens when using an SSH key for git authentication then HTTP for clone?

By : inquiringmind
Date : November 21 2020, 03:00 PM
seems to work fine Git can use different protocols. Local files, ssh, http(s) (smart or dumb), and the git protocol. You choose the protocol by the URL you choose.
Each protocol uses its own authentication method, or none at all. The ssh keys are only used if you use the ssh protocol. Not if you use http.
code :


Share : facebook icon twitter icon
$ git clone http://mySite.com/dirWhereTheRepoIs, how can I clone a repo through http?

$ git clone http://mySite.com/dirWhereTheRepoIs, how can I clone a repo through http?


By : Robroy
Date : March 29 2020, 07:55 AM
hope this fix your issue Setup and use SmartHTTP - http://progit.org/2010/03/04/smart-http.html
SmartHTTP is the standard now.
Git clone through http:// does not clone all tags

Git clone through http:// does not clone all tags


By : Sonum Aucharuz
Date : March 29 2020, 07:55 AM
help you fix your problem Check that on your server repository you have enabled the post-update hook which calls update-server-info to record some details that can be missed by the http dumb server. See the manual page for some details about this.
Can't clone repo using git clone git://... - ok with git clone http://

Can't clone repo using git clone git://... - ok with git clone http://


By : Nyx Han
Date : March 29 2020, 07:55 AM
I wish this helpful for you Well, I think you are using the wrong url in your second case
Try this instead
code :
git clone git@github.com:organisation_name/repo_name.git
Git clone with authentication over HTTP protocol

Git clone with authentication over HTTP protocol


By : Saubhagya Mahajan
Date : March 29 2020, 07:55 AM
will help you Your configuration uses a Require expr that matches on git-receive-pack. That's the service that's used when you push to the server. In order to make the server require authentication for clones and fetches, you need to match on git-upload-pack as well.
The easiest way to fix this is probably to remove that Require expr line, since it sounds like you want the server to always apply authentication, regardless of the task you're performing. Removing the Require expr lines removes the exemption for non-push operations.
How to add HTTP basic authentication on HTTP.POST and HTTP.PUT on webclient of webflux security?

How to add HTTP basic authentication on HTTP.POST and HTTP.PUT on webclient of webflux security?


By : user2955933
Date : March 29 2020, 07:55 AM
this one helps. You are explicitly restricting the authentication to GET requests only. If you replace this line in your SecurityWebFilterChain configuration:
code :
.pathMatchers(HttpMethod.GET, "/route/user/**", "/route/post/**").hasRole("USER")
.pathMatchers("/route/user/**", "/route/post/**").hasRole("USER")
Related Posts Related Posts :
  • Jenkins Pipeline Git commit message before scm checkout
  • Jenkins could not locate pom.xml of the project
  • Git- Deleted files getting in the way of merge?
  • Disable/Change Visual Studio Team Services automatic interpretation of hash-number commit messages
  • Git file name changes case on push
  • Store Git ID in variable in batch script
  • git clone fail from config script
  • Is there any alternative to the atom package line-diff-details?
  • Git branches results comparison
  • Prevent TeamCity building on fast-forward merge to master if build exists for that SHA1
  • Error launching git when using git command prompt
  • How to reset Git repository to old sate without moving the HEAD
  • YOCTO: "error: cannot run ssh: No such file or directory"
  • How to make a commit to the new master in git
  • gitk not showing diff colors on macOS
  • Need to delete particular commit from bit bucket
  • Don't close issues mentioned in Pull Request commit messages
  • IntelliJ GitLab. Push failed. Failed with error: Authentication failed
  • Github project find all files in .gitingore file | Forcefully added files
  • Git Smart HTTP protocol fails to execute server side hooks on push
  • Is "git rev-parse --short" aware of the current directory?
  • How do I add files to a git project without them being tracked?
  • Git submodule track branch effectivly
  • If I edit local repo directly, what is the point of commits? Where are repo's stored? How does GitHub know who I am?
  • how to create update fucntion for bash script
  • Zsh in iTerm2 completion causing git push error
  • Correct way to merge branch into local branch
  • How can core.autocrlf be still set if it is not set in local/global/system level?
  • Add rsa-keys to the system
  • Git, when renaming on both branches, not detected as rename
  • Download random GitHub repositories with Powershell
  • How do fetch remote branch after I cloned repo with git clone --depth 1
  • Dreamweaver Git integration not able to fetch
  • How Buildroot makes archive of git repository?
  • Azure DevOps git policy configurations api broken?
  • Deleting files locally but not from online github repo
  • Sublime Merge SSH Failing when Key has password
  • How to fix this in git "This branch is out-of-date with the base branch"?
  • Migration from SVN to GitHub
  • how to pull certain file type from a certain Tag
  • Git: get commit diff without checking out code, is it possible?
  • Pushing to Github on Mac returns error everytime
  • How to force my main repo to update when a submodules is updated?
  • shadow
    Privacy Policy - Terms - Contact Us © voile276.org