ssh on cygwin (win10): read_passphrase: can't open /dev/tty:Inetd / xinetd isn't working under cygwin, why?ssh uses wrong home directory in CygwinCan't remove tunnel created by CygwinLoggin in ssh server: Permission denied, please try againCan't ssh as tty-less userssh-add under cygwinNeed help in configuring ssh in cygwinNon-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failedManaging multiple servers behind a firewall with SSH reverse tunnelAWS :: Ubuntu instance consistently denying my private keys
Multi tool use
Is my company merging branches wrong?
Germany rejected my entry to Schengen countries
How could the B-29 bomber back up under its own power?
Have I found a major security issue with login
Addressing an email
Why aren't satellites disintegrated even though they orbit earth within earth's Roche Limits?
How do you cope with rejection?
How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?
Why does snapping your fingers activate the Infinity Gauntlet?
Richard's Favourite TV Programme
Why is python script running in background consuming 100 % CPU?
Why does string strummed with finger sound different from the one strummed with pick?
Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario
Gambler's Fallacy Dice
Is it a good idea to teach algorithm courses using pseudocode instead of a real programming language?
"File type Zip archive (application/zip) is not supported" when opening a .pdf file
Latin words remembered from high school 50 years ago
Bash - Execute two commands and get exit status 1 if first fails
How does the "reverse syntax" in Middle English work?
Precedent for disabled Kings
How to convince boss to spend notice period on documentation instead of new projects
Character had a different name in the past. Which name should I use in a flashback?
Does the Aboleth have expertise in history and perception?
If you attack a Tarrasque while swallowed, what AC do you need to beat to hit it?
ssh on cygwin (win10): read_passphrase: can't open /dev/tty:
Inetd / xinetd isn't working under cygwin, why?ssh uses wrong home directory in CygwinCan't remove tunnel created by CygwinLoggin in ssh server: Permission denied, please try againCan't ssh as tty-less userssh-add under cygwinNeed help in configuring ssh in cygwinNon-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failedManaging multiple servers behind a firewall with SSH reverse tunnelAWS :: Ubuntu instance consistently denying my private keys
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:
% ssh -tt -vvv <user@host>
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
debug3: failed to open file:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
debug3: spawning /usr/X11R6/bin/ssh-askpass
CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Host key verification failed.
The special file /dev/tty is there:
% ls -la /dev/tty
crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty
I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.
I'm a little baffled as to what might be going on. Clues gratefully accepted.
ssh cygwin
add a comment |
Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:
% ssh -tt -vvv <user@host>
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
debug3: failed to open file:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
debug3: spawning /usr/X11R6/bin/ssh-askpass
CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Host key verification failed.
The special file /dev/tty is there:
% ls -la /dev/tty
crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty
I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.
I'm a little baffled as to what might be going on. Clues gratefully accepted.
ssh cygwin
add a comment |
Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:
% ssh -tt -vvv <user@host>
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
debug3: failed to open file:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
debug3: spawning /usr/X11R6/bin/ssh-askpass
CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Host key verification failed.
The special file /dev/tty is there:
% ls -la /dev/tty
crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty
I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.
I'm a little baffled as to what might be going on. Clues gratefully accepted.
ssh cygwin
Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:
% ssh -tt -vvv <user@host>
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
debug3: failed to open file:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
debug3: spawning /usr/X11R6/bin/ssh-askpass
CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Host key verification failed.
The special file /dev/tty is there:
% ls -la /dev/tty
crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty
I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.
I'm a little baffled as to what might be going on. Clues gratefully accepted.
ssh cygwin
ssh cygwin
edited May 22 '18 at 19:47
JP Mattia
asked May 22 '18 at 19:05
JP MattiaJP Mattia
11619
11619
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)
% which ssh
/cygdrive/c/WINDOWS/System32/OpenSSH/ssh
The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.
So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)
1
/usr/bin does not includessh
on my fresh installation of Cygwin :(
– Christoph Geschwind
Jul 8 '18 at 16:13
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
1
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
1
As other comments have hinted at, you must also installopenssh
, as it is not installed by default.
– timelmer
Dec 5 '18 at 4:27
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
|
show 1 more comment
If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation
The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f913304%2fssh-on-cygwin-win10-read-passphrase-cant-open-dev-tty%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)
% which ssh
/cygdrive/c/WINDOWS/System32/OpenSSH/ssh
The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.
So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)
1
/usr/bin does not includessh
on my fresh installation of Cygwin :(
– Christoph Geschwind
Jul 8 '18 at 16:13
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
1
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
1
As other comments have hinted at, you must also installopenssh
, as it is not installed by default.
– timelmer
Dec 5 '18 at 4:27
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
|
show 1 more comment
Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)
% which ssh
/cygdrive/c/WINDOWS/System32/OpenSSH/ssh
The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.
So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)
1
/usr/bin does not includessh
on my fresh installation of Cygwin :(
– Christoph Geschwind
Jul 8 '18 at 16:13
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
1
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
1
As other comments have hinted at, you must also installopenssh
, as it is not installed by default.
– timelmer
Dec 5 '18 at 4:27
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
|
show 1 more comment
Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)
% which ssh
/cygdrive/c/WINDOWS/System32/OpenSSH/ssh
The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.
So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)
Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)
% which ssh
/cygdrive/c/WINDOWS/System32/OpenSSH/ssh
The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.
So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)
edited May 23 '18 at 16:48
answered May 23 '18 at 14:35
JP MattiaJP Mattia
11619
11619
1
/usr/bin does not includessh
on my fresh installation of Cygwin :(
– Christoph Geschwind
Jul 8 '18 at 16:13
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
1
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
1
As other comments have hinted at, you must also installopenssh
, as it is not installed by default.
– timelmer
Dec 5 '18 at 4:27
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
|
show 1 more comment
1
/usr/bin does not includessh
on my fresh installation of Cygwin :(
– Christoph Geschwind
Jul 8 '18 at 16:13
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
1
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
1
As other comments have hinted at, you must also installopenssh
, as it is not installed by default.
– timelmer
Dec 5 '18 at 4:27
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
1
1
/usr/bin does not include
ssh
on my fresh installation of Cygwin :(– Christoph Geschwind
Jul 8 '18 at 16:13
/usr/bin does not include
ssh
on my fresh installation of Cygwin :(– Christoph Geschwind
Jul 8 '18 at 16:13
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.
– JP Mattia
Jul 9 '18 at 18:37
1
1
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.
– Jason Slobotski
Aug 4 '18 at 2:20
1
1
As other comments have hinted at, you must also install
openssh
, as it is not installed by default.– timelmer
Dec 5 '18 at 4:27
As other comments have hinted at, you must also install
openssh
, as it is not installed by default.– timelmer
Dec 5 '18 at 4:27
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)
– VeraKozya
Feb 4 at 19:30
|
show 1 more comment
If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation
The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal
add a comment |
If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation
The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal
add a comment |
If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation
The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal
If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation
The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal
answered Jul 25 '18 at 7:51
skelatorskelator
112
112
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f913304%2fssh-on-cygwin-win10-read-passphrase-cant-open-dev-tty%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
92 kNFrNSCwxbWP1I 7 4HejA50t3X,JuARoaqWcxYSULs,9v9Ge97,b OAXZIicrTrUtUX kX3REutzAoIlY