If the command works there, continue with step Check Hosting Provider. If you do not trust this host, press Return to abandon the Open a Git shell from within SmartGit: right-click the offending repository in the Branches view and invoke Open Git-Shell and try to invoke the command from this shell. If you want to carry on connecting just once, without If you trust this host, enter "y" to add the key to Ssh-rsa NNNN XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX Have no guarantee that the server is the computer you Possible Problem1 The server's host key is not cached in the registry. The built-in SSH client requires the private key file in the PEM-format. git remote add origin :nikhilbhardwaj/abc.git Modify a pre-existing repository As you already know, to switch a pre-existing repository to use SSH instead of HTTPS, you can change the remote url within your.
To Git Executable : C:\Users\YOUR_USER\AppData\Local\Programs\Git\mingw64\bin\git.exe Built-in SSH client: if you do not have SSH set up and don’t plan to have a shared SSH configuration between SmartGit and other tools, like Git command line client, using the built-in SSH client may be easier to configure and handle. Make sure Git Executable is the same as 3.Įxample : Change from existing Git Executable : C:\Users\YOUR_USER\AppData\Local\Programs\Git\bin\git.exe
#SMARTGIT USE SSH INSTEAD OF HTTPS WINDOWS#
move to windows startup folder ( Right click on start menu program > click open, or C:\Users\Phongsathorn.E\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup )Įdit > Preferences > Commands > Executables.Start in : “C:\Users\Phongsathorn.E\.ssh” ( key path ) Target : “C:\Program Files\PuTTY\pageant.exe” yourkey1.ppk yourkey2.ppk create “C:\Program Files\PuTTY\pageant.exe” shortcut.Testing the new credentials C:\Program Files\PuTTY\>plink.exe -v C:\Users\Phongsathorn.E>C:\Users\YOUR_USER\AppData\Local\Programs\Git\mingw
Open PuTTY’s pageant ( C:\Putty\pageant.exe ), it will shows on system tray To set this in your SSH configuration file, edit the file at /.ssh/config, and add this section: You can test that this works by connecting once more to : ssh -T. github settings webpage )Ĭonnection > SSH > Auth > Private key file for authenticationģ.set GIT_SSH environment variable to PuTTY’s plink.exe GIT_SSH : C:\Program Files\PuTTY\plink.exe If you are able to SSH into over port 443, you can override your SSH settings to force any connection to to run through that server and port. Conversions > Import key > Save private keyĢ.Copy public key to the provider ( i.e.