-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmder unable to find .ssh folder #387
Comments
I do not maintain the chocolatey version of cmder, my only suggestion is to try an official release here on GitHub and try using that. |
Thanks MartiUK. I will try your suggestion. Can you just tell me where Cmder will look by default for ssh keys? |
By default msysgit uses |
I downloaded the latest version of Cmder from Github and put it in my Dropbox account this time/ C:\Users\Willem.ssh exists and has the correct keys in for the boot2docker vm as when I use the boot2docker start.sh script, I do not have to give any password. When I use Cmder to ssh to boot2docker It keeps asking me for my password hence I still think Cmder / msysgit does not find %HOME%.ssh Tried adding HOME environment variable to Windows, but it does not seem to help. Also tried with HOME=C:\Users\Willem\ Still does not work. Any help to make this work is highly appreciated. I'm not sure how I could find out where things are going wrong. |
Just to clarify, the folder you have your keys in is |
Have the same pathing and got the exact same problem |
Same problem here. |
If you run |
Aha, that fixed it for me, I was using the one github for windows created, which was named github_rsa, just renamed it id_rsa 👍 Thanks. |
λ ssh -v [email protected] I hope this helps to identify the issue? When I connect to my boot2docker vm, it still asks for the password. ssh keys are in C:\Users\Willem.ssh |
MartiUK, I got it working! It was some time ago I did this, so I though I'd generate new keys and try again. After doing the following when in the user folder: ssh-keygen -t rsa ssh-copy-id [email protected] cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" I can connect from Cmder to Boot3Docker without password. Thanks for the help and the patience! |
@willemdh If you're trying to ssh to your boot2docker you need to specify the id file you want ssh to use i.e. to make ssh use it all the time add this into your .ssh/config file
|
@willemdh Ah, that's another way of doing it. |
Thanks Marti! And good job on the Cmder. I'm using it alot. THe only other issue I still have is this #379 |
@MartiUK I'm having the same issue but with BitBucket. In Git Bash, I only have to input my password once, then I can My
Any ideas? |
@Ciwan1859 Have you added the key to the ssh-agent? |
@MartiUK, yep I have. I tried to do it again in Cmder, but I got the following: But in Git Bash, it was added fine! Afterwards, I restarted Cmder, but again it asks for the password on each remote git command. |
try this: C:\\Users\\Willem\.ssh\\id_rsa double back slash |
Hello,
I installed Cmder with Chocolately on Windows 8.1. It seems by default it installs under C:\Tools
Then I installed boot2docker for Windows.
When I ssh to the boot2docket vm from boot2docker start, it does not ask for any password, as the public / private keys are in C:\Users\Willem.ssh
I would have expected Cmder also look in C:\Users\Willem.ssh for keys, but apparently it does not. When I explicitly define the location of the boot2docker private key like this it does work:
ssh -v2 -i C:\Users\Willem.ssh\id_boot2docker [email protected]
So is there a way to make Cmder look at C:\Users\Willem.ssh for keys? Where does it look by default? I tried moving the .ssh folder to C:, to C:\tools\cmder\config
Please advise how to make Cmder look at the correct .ssh folder.
Tried adding environment variable 'HOME' with value '%USERPROFILE%' but it didn't not help.
Thanks and grtz
Willem
The text was updated successfully, but these errors were encountered: