In Windows, I cannot find any way to make permissions 700.Īfter fighting with that, I think it must not be the problem. ssh settings rejected if the folder is not set at 700. Here are other things I tried along the wayĪt first I was certain it is because of file and folder permissions. Remote: Total 3 (delta 0), reused 0 (delta 0) Remote: Compressing objects: 100% (2/2), done. Then I change to the directory where I want to clone the repo $ cd ~/Documents/GIT/ $ ssh-add ~/.ssh/Paul_Johnson-windowsvm-20180318Įnter passphrase for /c/Users/pauljohn32/.ssh/Paul_Johnson-windowsvm-20180318: The key you create with a non-standard name must be added to the ssh key agent.įirst, I start the key agent in the Git BASH shell: $ eval $(ssh-agent -s) The ssh key agent looks for default "id_rsa" and other keys it knows about. If I were using Windows often, I'd find some way to make this permanent. Once you know the magic search terms are "add key with ssh-add in windows" you find plenty of other links. You need to add your new non-standard-named key file with "ssh-add"! Here's instruction for the magic bullet: Generating a new SSH key and adding it to the ssh-agent. I kissed a lot of frogs trying to solve this. I found an answer that helps for me, maybe this will help OP. In Windows, they are not working for me today. $ ssh -T to GitLab, Using Commandline (requires activation of Win 10 OpenSSH Client)Ĭ:\Users\>ssh -T to GitLab, For troubleshooting use ssh -Tv (or -Tvv or -Tvvv for higher verbosity levels). Then copy-and-paste below it for the other host/user combinations and amend as required. Keep both CMD and BASH paths or only pick one format. Open the file in a text editor like Notepad, and add these configuration details for the first remote host and user. You can use multiple ssh keys on Windows 10 and specify the type of access allowed.Īssuming you have created the ssh secure keys already and they were stored in C:\Users\\.sshĬreate the file config (no file extension)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |