Active6 months ago
- Ssh Key Not Working
- Windows Ssh Keygen Not Working
- Ssh-keygen Not Working
- Ssh Keeps Asking For Password
The directory /.ssh MUST be owned by the user, not root. So change that and it will work. To avoid having to type the passphrase for your private key every time you use ssh-agent. Ssh-add.ssh/idrsa will add the key to the agent, from then on the agent will provide the key to ssh. Then I looked up on the internet and found that I had to generate an ssh key for my account on GitHub. However, upon doing so, when I tried to do ssh-keygen -t rsa '[email protected]' it simply said ssh-keygen is not recognized. I tried doing mkdir C:ssh but that didn't work. If it helps I'm using Ruby Rails and I'm on a Windows computer. I'm using ssh-keygen to generate a key on Ubuntu 10.10, then using ssh-copy-id to copy the key to two remote machines that are running 10.04 (one desktop, the other server). But here's the thing: I can SSH into the desktop without a password, but then some time later I'm asked for a password again. The server always asks for a password and never lets me login with my key. Feb 16, 2012 ssh-keygen for auto ssh login not working I followed the information provided on this page to use ssh-keygen to generate ssh keys to allow me to login to some machines on the local network that would not require me to login (because I'm writing a script that needs to ssh into these machines and execute various commands).
I run
git push -u origin master
It tells me that 'Permission denied (public key) fatal: The remote end hung up unexpectedly'
Ssh-keygen is a tool for creating new authentication key pairs for SSH. Some functionality on this site will not work without cookies and our advertising will be less. Ssh-keygen - Generate a New SSH Key. This page is about the OpenSSH version of `ssh-keygen`. For Tectia SSH, see here. If you wish to generate keys for PuTTY, see PuTTYgen. Ssh-keygen questions (not working) I managed to ssh between servers. I created and installed public keys for both machines so that I can ssh from both servers to each other (from server A to B and from server B to A). Ssh keygen in unix server.
Then I looked up on the internet and found that I had to generate an ssh key for my account on GitHub. However, upon doing so, when I tried to do ssh-keygen -t rsa '[email protected]' it simply said ssh-keygen is not recognized. I tried doing mkdir C:ssh but that didn't work. If it helps I'm using Ruby Rails and I'm on a Windows computer. Could anyone help me?
culix5,3875 gold badges26 silver badges47 bronze badges
user1567909user15679096072 gold badges9 silver badges24 bronze badges
14 Answers
2012:
ssh-keygen.exe
is part of msysgit:if your
%PATH%
includes C:pathtomsysgit1.7.11bin
, you will have ssh-keygen
. Update 2015:
ssh-keygen.exe
is part of Git For Windows, whose releases include PortableGit-2.4.3.1-2nd-release-candidate-64-bit.7zThat means the
%PATH%
must include c:pathtoPortableGit-2.4.3.1-2nd-release-candidate-64-bitusrbin
(without the ssh-keygen.exe
)As I explained before, Git for Windows will soon phase out msysgit.
I detailed in 'Why is it that if you download Git 2.0 from the net, you always get a 1.9.4 installer package?' how this new version is based on the more recent msys2 project.
I detailed in 'Why is it that if you download Git 2.0 from the net, you always get a 1.9.4 installer package?' how this new version is based on the more recent msys2 project.
Community♦
VonCVonC897k330 gold badges2916 silver badges3507 bronze badges
I just had this issue and thought I'd share what I thought was an easier way around this.
Open git-bash and run the same command with the addition of -C since you're commenting in your email address:
ssh-keygen -t rsa -C '[email protected]'
command. That's it.git-bash should have been installed when you installed git. If you can't find it you can check C:Program FilesGitGit Bash
The first time I did this it failed to create the .ssh folder for me so I had to open a standard Command Prompt and mkdir C:Usersyourusername.ssh
cjaypiersoncjaypierson
I followed below in windows (With Git for Windows installed)
- Run 'Git Gui' (Start --> Git --> Git Gui)
- Click Help and then Show SSH Key
- Click Generate Key if you do not have one already
Note:- this creates the key files under your personal profile folder C:UsersYourUserID.ssh
Dinesh RajanDinesh Rajan
I found an easy solution to fix this :
In the command prompt, go to your gitbin directory,and then execute your commands from here
pirgauthierpirgauthier
No need to add anything to environmental variables! Just open up git bash and perform command the ssh-keygen in there.
Link to download git bash here
Bilton TranBilton Tran
If you have installed Git, and is installed at C:Program Files, follow as below
- Go to 'C:Program FilesGit'
- Run git-bash.exe, this opens a new window
- In the new bash window, run 'ssh-keygen -t rsa -C'
- It prompts for file in which to save key, dont input any value - just press enter
- Same for passphrase (twice), just press enter
- id_rsa and id_rsa.pub will be generated in your home folder under .ssh
user3233126user3233126
Just go to heroku.bat and add:
@SET PATH='D:Program Files (x86)Gitbin';%PATH%
after @SET PATH=%HEROKU_RUBY%;%PATH%
in my case it's in D:Program Files (x86)Gitbin, change it to the path you've installed Git to. (i just left it with my path so it will be clearer on how to write this)
VladVlad5922 gold badges9 silver badges17 bronze badges
I think you can add the location of the file ssh-keygen.exe in the PATH environment variable. Follow the steps: Go to My Computer->Right click->Properties->Advanced System Settings->Click Environmental Variables. Now click PATH and then click EDIT. In the variable value field, go to the end and append ';C:pathtomsysgit1.7.11binssh-keygen.exe' (without quotes)
Nehal J WaniNehal J Wani10.6k2 gold badges31 silver badges56 bronze badges
don't do anything just type in your command prompt
Download Donkey Kong Country (V1.2) ROM for Super Nintendo(SNES) and Play Donkey Kong Country (V1.2) Video Game on your PC, Mac, Android or iOS device! Donkey Kong Country USA rom for Super Nintendo (SNES) and play Donkey Kong Country USA on your devices windows pc, mac,ios and android! Donkey Kong Country USA - Super Nintendo (SNES) rom download WoWroms.com. Donkey kong country snes rom free download.
then you got like this
this should must work.
Osama SaeedOsama Saeed
You probably should check this. Windows doesn't have that command built in.
Benjamin Tan Wei HaoBenjamin Tan Wei Hao8,5463 gold badges26 silver badges49 bronze badges
emix7,9665 gold badges35 silver badges56 bronze badges
ouminaoumina
I got it fixed by just adding
ssh-keygen
to my environment variables.Bartel De BrabandereBartel De Brabandere
for those who does not choose BASH HERE option. type sh in cmd then they should have ssh-keygen.exe accessible
Zeeshan KhanZeeshan Khan
In my machine,
ssh-keygen
was available from powershell.user4757074user4757074
Not the answer you're looking for? Browse other questions tagged windowsgitsshgithub or ask your own question.
Active1 month ago
I am trying to add ssh keys for usage on github but on my xp on command prompt ssh-keygen does not work. It gives me the following error
Is there an alternative for generating keys on xp?
Neeraj Kumar2,3012 gold badges20 silver badges30 bronze badges
pal4lifepal4life1,5882 gold badges26 silver badges47 bronze badges
9 Answers
Are you running msysgit, or some other form of Windows git installation? msysgit is only one possible way to run git on Windows but it's probably also the simplest one. It's also the way recommended by the git website at http://git-scm.org/ .
If you are using msysgit, then you need to run the command in Git Bash, not in a standard Windows command line prompt. Git Bash is a prompt that is installed for you by msysgit, and is basically the most common Linux command line shell (bash) packaged for Windows to facilitate command line usage of git. msysgit should also install the ssh-keygen program in a place where it is accessible from Git Bash, but not necessarily from your usual Windows command line prompt.
kinikini
STEP 1 Install Git.
STEP 2 Add the path of your git to the environment variables like this C:Program Files (x86)Gitbin.
STEP 3 Open new terminal session and try ssh-keygen. It will work.
NOTE New Terminal Window is must!
sud0072,7181 gold badge32 silver badges41 bronze badges
ajknzholajknzhol4,2888 gold badges32 silver badges60 bronze badges
If you previously installed Git, open a git-bash and try the command from there.
ScottLenartScottLenart9011 gold badge10 silver badges14 bronze badges
Search your git directory if you already install git
Use git bash should be on your C:Program FilesGitbin depend on your installation location
If you already add the path just run sh on your cmd or open sh.exe
type ssh-keygen
Then just insert name and passphrase (You can just type empty string).
Daniel SunaryoDaniel Sunaryo
Arif AcarArif Acar6232 gold badges8 silver badges25 bronze badges
MansiMansi
ssh-keygen is a utility usually found on Linux distributions. You can use Cygwin on Windows to have most functionality of the Linux command line available to you.
thezboe![Bash Bash](/uploads/1/2/4/9/124910504/516019314.png)
Ssh Key Not Working
thezboe3841 gold badge3 silver badges13 bronze badges
if you run from cmd on windows check the path System Variable value must have inside C:Program FilesGitbin or the path of you git installation on cmd type set to see the variables
Windows Ssh Keygen Not Working
SotosSotos
- Install msysgit
- Right-click on any file
- Select 'Select Git Bash here' from menu
- Run ssh-keygen command from a git bash terminal
Ssh-keygen Not Working
Kondal KolipakaKondal Kolipaka