Error Cannot Spawn Plink.exe
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “Cannot spawn ssh” when connecting to Github, but ssh -T git@github.com works? up vote 14 down vote favorite 4 I am having a hard time getting Github (+Netbeans to work). I want to use ssh with git (on Windows 7) to, e.g., commit or clone a project, but I keep getting this error message : $ git clone git@github.com:USER/PROJECTNAME.git error: cannot spawn C:\Program Files (x86)\Git\bin\ssh.exe: No such file or directory fatal: unable to fork Note: For now, my GIT_SSH environment variable is pointing to C:\Program Files (x86)\Git\bin\ssh.exe, but I have also tried C:\Program Files (x86)\Git\bin, erasing it entirely, pointing to putty's/plink's folder, and pointing to their executables, but still the same message. When I test the connection everything works fine: $ ssh -T git@github.com Hi USER! You've successfully authenticated, but GitHub does not provide shell access. What am I doing wrong? Does it make a difference if I do the git init in the directory in the first place? EDIT: This didn't help: setting GIT_SSH to plink.exe and adding plink's path to PATH *EDIT 2 * result of command with GIT_TRACE=2 $ GIT_TRACE=2 git clone git@github.com:XXX/AffableBean trace: built-in: git 'clone' 'git@github.com:XXX/AffableBean' Cloning into 'AffableBean'... trace: run_command: 'Plink.exe' '-batch' 'git@github.com' 'git-upload-pack '\''XXX/AffableBean'\''' error: cannot spawn Plink.exe: No such file or directory fatal: unable to fork git version-control ssh github share|improve this question edited May 20 '12 at 14:22 asked May 13 '12 at 18:42 Patryk 4,0421757129 Does GIT_SSH have the spaces escaped at all? In your second example it looks like you can run ssh directly, so is that in your path? I'd guess if you have ssh in your PATH you shouldn't need the GIT_SSH variable to be set. –Stephen Newell May 13 '12 at 19:28 @StephenNewell Even if I have ssh (or any other ssh client in the PATH) I still get the same message. I have even tried unsetting GIT_SSH variable but it still won't work. –Patryk May 13 '12 at 19:42 What error message to you get if GI
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Git push origin master returns Error cannot spawn … why? up vote 8 down vote favorite 2 I'm trying to use GitHub for the first time, http://stackoverflow.com/questions/10574267/cannot-spawn-ssh-when-connecting-to-github-but-ssh-t-gitgithub-com-works but after many issues trying to get the authentication right, I've managed to authenticate with git@github.com and created a repo, but when i try "git push origin master" i get the following error: $ git push origin master error: cannot spawn : No such file or directory fatal: unable to fork I cant find any reason for the error or any explanation in the trouble shooting pages, can anyone suggest why it may be that I http://stackoverflow.com/questions/3097539/git-push-origin-master-returns-error-cannot-spawn-why get that error. I have already specified/added the remote path as follows: $ git remote add origin git@github.com:christopherdebeer/yUML-Diagram.git please help. Also this is all on a windows 7 machine running mysysgit (1.7.0.2) and using git bash. re: Issue 313, a space in the GIT_SSH variable, cant be the problem mine is as follows: $GIT_SSH="c:/putty/plink.exe" git windows-7 github msysgit share|improve this question edited Jun 23 '10 at 8:25 asked Jun 22 '10 at 22:14 Christopher 1,0281131 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote That reminds me of issue 313, where GIT_SSH environment variable contains spaces in its path. Other than that, did you followed the GitHub Help page and checking if your ssh connection worked? $ ssh git@github.com The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts. ERROR: Hi tekkub! You've successfully authenticated, but GitHub does not provide shell access Connection to github.com closed. share|improve this answer answered Jun 22 '10 at 23:21 VonC 625k19017981883 Yeah ive definitely checked that my ssh works correctly. as per the GitHub help page, and gotten the mesage: "Hi christopherdebeer! You've successfully authenticated but GitHub does not provide shell access" I'll look into "issue 313"... –Christopher Jun
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have http://serverfault.com/questions/484585/git-plink-and-cmd-exe-how-do-i-set-plink-exe-to-be-verbose-when-used-as-git-s Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes error cannot a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Git, plink, and cmd.exe: how do I set plink.exe to be verbose when used as GIT_SSH up vote 3 down vote favorite How can I configure plink.exe to be verbose when error cannot spawn run by git? The problem: on windows, using the command git.cmd clone git+ssh://user@host/repo folder when GIT_SSH=plink.exe intermittently fails across build slaves. I need to find the root cause, and make connections reliable, without retrying on some count. I've narrowed down that sshd is running and terminating its processes without error. The server is running gitosis, so I only have command line output to go on. When the failure happens, gitosis doesn't get called (no gitosis prints), so I'm suspecting the windows ssh client. I want to connect with verbose logging when plink.exe is invoked by git. Setting GIT_SSH=plink.exe -v results in: error: cannot spawn plink.exe -v: No such file or directory Turns out, GIT_SSH must be an executable or wrapper script. Creating such a batch file wrapper gets closer: GIT_SSH=C:\path\to\plink.cmd where plink cmd is plink.exe -v %* prints expected verbose logging to console, but terminates unsuccessfully with error code 128. The cloned folder is never created, and the last printed console output is: Unable to write to standard output: T