Saving Private Key Failed With

Saving Private Key Failed With




🛑 👉🏻👉🏻👉🏻 INFORMATION AVAILABLE CLICK HERE👈🏻👈🏻👈🏻




















































Sign up or log in to view your list.
i just started a Git tutorial and I get to a deadend: I try to generate a rsa key part and it fails. I did this, in git bash:
I tried to save in a different folder and it went OK. but now i do the command ssh -T git@github.com and it gives me the error permisson denied (publickey).
Eva Dias
Eva Dias 1,591●99 gold badges●3030 silver badges●6565 bronze badges
If you prefer to use a GUI to create the keys
First Zero
First Zero 19.3k●66 gold badges●4343 silver badges●4444 bronze badges
If you're using Windows, the unix-style default path of ssh-keygen is at fault.
In Line 2 it says Enter file in which to save the key (/c/Users/Eva/.ssh/id_rsa):. That full filename in the parantheses is the default, obviously Windows cannot access a file like that. If you type the Windows equivalent (c:\Users\Eva\.ssh\id_rsa), it should work.
Before running this, you also need to create the folder. You can do this by running mkdir c:\Users\Eva\.ssh, or by created the folder ".ssh." from File Explorer (note the second dot at the end, which will get removed automatically, and is required to create a folder that has a dot at the beginning).
I know this is an old thread, but I thought the answer might help others.
csaba.sulyok
csaba.sulyok 1,691●22 gold badges●1212 silver badges●1212 bronze badges
Vivek Maharajh
6,391●33 gold badges●2424 silver badges●2727 bronze badges
Note that you must create the directory before running the command. To Create a windows directory starting with a . you have to put a . before it and it will automatically be removed ".ssh." creates ".ssh". – marsh Apr 27 '17 at 14:28
That IS the answer. I've been suffering from the same problem and that i.e. entering the pathname the Windows way, solved the problem instantly. Thank you! – Terry May 23 '19 at 13:02
It looks like you are executing that command from a DOS session (see this thread), and that means you need to create the .ssh directory before said command.
Or you can execute it from the bash session (part of the msysgit distribution), and it should work.
VonC
VonC 1.1m●446446 gold badges●37023702 silver badges●43584358 bronze badges
In my case this was the correct answer, just forgot to create the directories specified in path – blissini May 6 '16 at 9:55
I had the same issue. I had to provide the full path using Windows conventions. At this step:
Enter file in which to save the key (/c/Users/Eva/.ssh/id_rsa):
Jared
Jared 315●44 silver badges●1010 bronze badges
OSX too: instead of ~/.ssh/id_rsa I had to use /Users//.ssh/id_rsa – AVProgrammer Mar 17 '16 at 15:47
Yep, on macOS I needed to type in the whole path of the intended keyfile for the second SSH key I generated (the first one worked with just the file name). – Aditya M P Dec 11 '16 at 13:58
I had to provide the full path too on High Sierra. – BaDr Amer Mar 12 '18 at 8:35
You have to create the .ssh folder yourself for saving ssh keys.
By the way, I used this path style: C:/Users/you/.ssh/id_rsa
whenov
whenov 684●11 gold badge●88 silver badges●1818 bronze badges
I struggled with the same problem for a while just now (using Mac). Here is what I did and it finally worked:
(1) Confirm the .ssh directory exists:
(2) Accept all default values by just pressing enter at the prompt
PS If you are configuring git for rails, do the following (source):
(then accept all defaults by pressing enter)
Tanya Gupta
Tanya Gupta 542●33 silver badges●1313 bronze badges
In Windows I had to create the environment variable HOME pointing to my user profile first (C:\Users\) or whatever directory you prefer.
Then start a new command line window, create a a .ssh directory in your user profile or choosen diretory using mkdir ".ssh" command.
After doing that I was able to use the ssh-keygen without any path problems.
Mario Neubauer
Mario Neubauer 270●44 silver badges●1212 bronze badges
I was using bash on windows that came with git. The problem was I assumed the tilde (~) which I was using to denote my home path would expand properly. It does work when using cd, but to fix this error I had to just give it the absolute path.
Despertar
Despertar 19.6k●88 gold badges●6969 silver badges●7575 bronze badges
Your method should work fine on a Mac, but on Windows, two additional steps are necessary.
Saving the id_rsa key in this location should solve the permission error.
Finger Picking Good
Finger Picking Good 332●22 silver badges●1111 bronze badges
I faced the same problem. Solution on windows:
Richardd
Richardd 722●88 silver badges●1818 bronze badges
Open terminal and make sure you have .ssh directory.
On your home(~) folder enter ls -hal and you will see all hidden directories and make sure you have .ssh directory, if not do mkdir .ssh
then enter this ssh-keygen -t rsa -C "myemail@myemail.com"
then you have: Generating public/private rsa key pair. Enter file in which to save the key (/Users/YOURUSERNAME/.ssh/id_rsa):
press Enter (you don't need to enter nothing if you agree with that path or you need to enter your path from root of volume)
then follow answer what is gonna ask press Enter.
On Windows 8.1 using CMDER, I created the ssh key with this file path /c/Users/youruser/.ssh/id_rsa_whatever, the problem was the : that I was using. With this path I didn't create the folder before running the command, there is no need to run mkdir because the command will create the folder automatically.
Allan Freitas
Allan Freitas 1●33 bronze badges
this generate new modeled key. Or can create as:
Then continue following terminal.. give any name to the file as asked Again follow it with empty passphrase..and continue
Then goto the /home/user/.ssh/id_ed25519 or /home/user/.ssh/id_rsa (is hidden file..look by doing ctrl+h to unhide hidden file) and copy it to gitlab => profile => setting => ssh => create new key there by pasting copied key and NOTE: public key always starts with ssh. Enjoy! Help:gitlab-Help
For windows use enter button 3 times
Enter file in which to save the key (/c/Users/Rupesh/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again:
Rupesh Shitole
Rupesh Shitole 11●11 bronze badge
Click here to upload your image (max 2 MiB)
You can also provide a link from the web.
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
2021 Stack Exchange, Inc. user contributions under cc by-sa
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Accept all cookies Customize settings

Ssh-keygen (Saving the key failed:)

I have tried to save it to /tmp as a example. Same issue.


I think it's because he did it under root user.

Did you try to run ssh -vvvv? It can also help to stop ssh on the server side: stopsrc -s sshd and to run it manually in debug mode: /usr/sbin/sshd -D -ddd to see what happens.


We assume it is root, because //.ssh/* is the same as /.ssh/*

Just to be sure:

the output of the commands:

id
ls -ld /.ssh //.ssh

print HOME: ${HOME}

and, ls -ls ${HOME}/.ssh/id_dsa

FYI: the dsa keys seem to be "the less desired" PKI keys these days. You also want to be sure you have an "rsa" key - of sufficient bits.

and the output of ssh-V will reveal how new/old your installed ssh/ssl software is.


Thanks guys, seems to be a bug in openssl on aix 7.1.3sp5.


where is the output of lslpp -L 'openssl.*' and emgr -l?

Login or Register
for Dates, Times and to Reply
10 More Discussions You Might Find Interesting
For some reason, when I try copying my public key to the server, despite it showing as being successful: rob@linux044:~$ ssh-copy-id -i /home/rob/Work/Keys/keys.txt.pub !@#$%.com /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/rob/Work/Keys/keys.txt.pub"...
Discussion started by Circuits and has been viewed 1,645 times.
There has been 7 replies and 3 user thanks in this discussion.
I need to automate a file transfer thru SFTP. But I cannot do a passwordless key with ssh-keygen between the servers. Is there any other way like we do something like below in FTP??? ftp -n hostIP << EOF user userid password get filename EOF Please use code tags!
Discussion started by Vidhyaprakash and has been viewed 6,682 times.
There has been 5 replies in this discussion.
sftp username@host <24video Xxx Video View
Russian Actress Jav Porno
Douxtease S Bio And Free Webcam
Teen Fucking Rape
Sex Anal Fuck Cecilserpent
Saving Private Key Failed - Support - Komodo IDE & Edit ...
Can't Login to Komodo: Saving private key failed with ...
Ssh-keygen (Saving the key failed:) - UNIX
Invalid private key while using SSH · Issue #88 ...
git - SSH-Keygen "no such file or directory" - Stack Overflow
c# - Inserting Certificate (with privatekey) in Root ...
Keeping Private Keys Secured Without Limiting Access ...
After generating keys, no way of saving private key ...
Saving Private Key Failed With


Report Page