

- #RUBYMINE GITHUB SSH HOW TO#
- #RUBYMINE GITHUB SSH MANUAL#
- #RUBYMINE GITHUB SSH CODE#
- #RUBYMINE GITHUB SSH PC#
- #RUBYMINE GITHUB SSH WINDOWS#
PS C:\Users\jcaro> ssh -T agent returned different signature type ssh-rsa (expected rsa-sha2-512)

A final check and I confirm ssh is configured the way I need it to be for GitHub. You might have to run Start-Service ssh-agent if it doesn't automatically start in your current terminal, but after doing that it seems to be working flawlessly for me.
#RUBYMINE GITHUB SSH MANUAL#
(You could choose Manual if you wanted to go through the trouble of manually starting the agent whenever you needed it.) To do so you need to launch a PowerShell as an Administrator and run: PS C:\WINDOWS\system32> Get-Service -Name ssh-agent | Set-Service -StartupType Automatic The remedy for this is to set it to automatically start. PS C:\Users\jcaro> Get-Service ssh-agent | Select StartType The OpenSSH Authentication Agent was not running. Stopped ssh-agent OpenSSH Authentication Agent I landed on a page which suggested I look for a service ssh-agent. I was hoping for something a little more "native" to the PowerShell environment, so my search continued.
#RUBYMINE GITHUB SSH CODE#
The documentation on github seems to point to either using the shell provided by GitHub Desktop or adding some code to handle running the agent on load when you open bash or a Git shell. PS C:\Users\jcaro> ssh-add C:\Users\jcaro\.ssh\id_rsa-githubĮrror connecting to agent: No such file or directoryĪfter a little research I learned that the ssh-agent was not running. I tried to run ssh-add ~/.ssh/id_rsa-github with hopes my lucky streak would continue, but it failed. The OpenSSH Authenticat Agent (ssh-agent) I was expecting to be able to put this into ssh-agent which was not working. Much to my delight the file I ended up creating is at ~/.ssh/config (which is actually C:\Users\jcaro\.ssh\config on my machine) and is identical to the one I have in my dotfiles.Īt this point I was feeling rather confident so I copied in my SSH key and made sure it was configured as the default IdentityFile for Host * and sent the ssh test command ssh -T It worked! But I had to input the passphrase on the key every time.

On Linux/OS X I have a file in ~/.ssh/config that configures some of my preferred options for SSH and also any host-specific things like usernames and managing identity files. Next step was trying to figure out where to put the config. So I started there, opened up a PowerShell and typed in ssh fully expecting an error.
#RUBYMINE GITHUB SSH WINDOWS#
I had installed a program called the Windows Terminal (which appears to be in some sort of preview period) to allow me to open various terminals including PowerShell.

Taking the advice I give a lot of people I decided to just try it. Last time I went through this the default answer was "Install putty," but I had hopes I could natively ssh from a shell.
#RUBYMINE GITHUB SSH HOW TO#
I did a lot of searching to try and figure out how to configure SSH on a Windows machine. For ease of understanding we'll assume it is named id_rsa-github. The main concern for this step is to configure SSH with an identity file that is attached to my Github profile. Without getting into SSH key management suffice it to say that I have a couple of keys that I use in different scenarios to connect/auth with various services. I am saving setting up PHP and such for another day.
#RUBYMINE GITHUB SSH PC#
I recently built a PC for myself and decided that after a long time of not using Windows I would give it a shot.
