![]() This is the case because both call Git from a separate 32-bit process. It is also interesting to note that the error occurs in both Visual Studio 2019 (which is 32-bit) and Visual Studio 2022 (which is 64-bit). This file does not exist, hence the error. So, for a 32-bit process, the above path is actually C:\Windows\SysWOW64\OpenSSH\ssh.exe. In most cases, whenever a 32-bit application attempts to access %windir%\System32, %windir%\lastgood\system32, or %windir%\regedit.exe, the access is redirected to an architecture-specific path. The reason for this is the Windows file system redirector which redirects some of the system paths for 32-bit processes, as stated in the documentation: "C:\Windows\System32\OpenSSH\ssh.exe": C:\Windows\System32\OpenSSH\ssh.exe: No such file or directory However, if you try to use it from Visual Studio, it fails with the following error message: If you try to use Git with SSH from the command line after setting this, it will actually work as expected. SshCommand = \"C:\\Windows\\System32\\OpenSSH\\ssh.exe\" The ssh.exe command is located in C:\Windows\System32\OpenSSH on Windows. However, specifying a path there is mostly asking for trouble. The sshCommand in the core section allows you to specify the path and arguments for the ssh.exe command. gitignore file allows a lot of additional configuration. Just for complete documentation, as many above wrote the plink.Using SSH with Git on Windows mostly works out of the box. Plink.exe -ssh -pw "YourPassword" -P YourPort With the port it finally worked, here the complete command: ![]() You can find your port in BitBucket Admin / Server settings. Plink.exe -ssh -pw "YourPassword" breakthrough was adding the port parameter -P. I finally did it by coincidence, because i tried from another site this complete command with password included: I wasted almost 2 days on this error, the important difference, at least for me, wasthat i constantly got an "access denied" error with the plink command. and was able to clone just fine after that.įor everyone who is struggling with this error on BitBucket SERVER ( on prem) or who has Custom Ports. I got this response (and pressed enter), Access granted. enter your bitbucket username and press enter. Then when it prompts for your login, login as: Store key in cache? (y/n, Return cancels connection, i for more info) That the server is the computer you think it is. Then you'll get this: The server's host key is not cached. I was able to fix this in Windows 11 by running the following code in the command line (Sourcetree is installed in a different location than most programs by default apparently): "C:\Users\username\AppData\Local\SourceTree\app-3.4.8\tools\putty\plink.exe" Ĭhange "username" to your PC username, and change "app-3.4.8" to the appropriate folder with your version of sourcetree. But any login I can imagine, such as for my bitbucket account fails :įATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)īTW, the command line versions of the git commands work fineĪny help in this matter would be appreciated. After I enter yes, I am prompted for a login. When I do this, I am indeed prompted to trust the server. It simply switches to Embedded without any more messages or confirmations.Ģ) Run the command "C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe" When I do this I am not prompted to trust the host. The solution offers two workarounds:ġ) " Just get SourceTree to use Embedded Git and get it to trust the host" If you do not trust this host, press Return to abandon theīut this does not resolve the problem. If you want to carry on connecting just once, without If you trust this host, enter "y" to add the key to Have no guarantee that the server is the computer you The server's host key is not cached in the registry. Git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin In a brand new installation of SourceTree on a brand new WIndows 10 I am getting and error for push/pull/fetch etc :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |