![]() ![]() both, command line (bash) and Windows tools (Sublime Merge) work fine for the same repository.Īdding something odd when I tried the “debug” option in command line. Now I can use both, the subsystem’s ssh key and the Windows ssh key, i.e. So I guess I have to find a way to share this ssh key with Windows somehow… Possibly this is the issue for many folks here.Įdit: Obviously I was right for at least my issue - I followed and created a separate ssh key pair for my Windows 10 system and then added this Windows key to my bitbucket ssh keys. Please make sure you have the correct access rights Pulling or pushing using Sublime Merge (Windows) fails with this error message: Permission denied (publickey).įatal: Could not read from remote repository. This setup works fine with a git repo hosted on github, but with my repo hosted on bitbucket, I can only use the git command line tool inside the subsystem (bash shell) for pulling and pushing the repository. I cloned it into the mounted directory, so I can work on the files with the Windows software “Sublime Merge” and “Sublime Text”. fetch/commit/push etc.I now have the same issue, but the setting might be the problem: I have a git repo from bitbucket cloned using the Ubuntu subsystem in Windows 10. ![]() ( here you also see that on my git-server my actual user is alex and repository is myproject )ĭone! You can now work with your git-server. $ git remote add my-git-server git remote -v ![]() specify your remote address for your local git repository (again, notice the user git and the port 2022).$ ssh -T notice that the username is always git) test ssh connection to your git-server using public-key.(notice that the username is always git, regardless of your actual username on your git-server) add following lines to ssh-config to specify git-server's hostname, port and key-file.display contents of the public-key and copy/paste it to your profile's SSH keys in your git-server (similar to how you would do it on Github ).(this will create two files: private-key mykeyfile and public-key mykeyfile.pub) create ssh key-pair (quiet, without password).( have a gitea server in a docker container with ssh-port configured to 2022, instead of standard 22, here as an example my-git-server.lan ). Had a similar issue trying to connect to my git server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |