delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/11/02:07:18

From: Paul DOT Kelly AT division DOT co DOT uk (Paul Kelly)
Subject: ssh reads passphrase then just hangs
11 Nov 1998 02:07:18 -0800 :
Message-ID: <002601be0c35$0a3fdcb0$0ef5dfc2.cygnus.gnu-win32@kelly.division.co.uk>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

This is a multi-part message in MIME format.

------=_NextPart_000_0027_01BE0C35.0A3FDCB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi,
    I was hoping that someone could cast some light on my ssh misery.

    I wish to connect to one of my freeBSD servers via ssh from a NT
environment so I installed B20 onto my NT server/SP4 box.

    I ran mkpasswd and mkgroup to create the relevant /etc/ files.

    I then downloaded and extracted ssh-1.2.26-cygwinb20.tar.bz2 from Sergey
Okhapkin excellent site.

    Setting CYGWIN to "  tty" and I tried to run ssh-agent. This fails with

Bad modes or owner for directory '/tmp/ssh-pik'
echo Agent creation failed, no agent started

    but ls -l /tmp gives

total 0
drwxrwxrwx   1 Administrators  None                  0 Nov  9 05:24 ssh-pik

or after I chown it:-

total 0
drwxrwxrwa   1 pik             None                  0 Nov  9 05:24 ssh-pik

O.K. I say I can do it by hand so I just run ssh1 -v sol and I get

SSH Version 1.2.26 [i586-pc-cygwin32], protocol version 1.5.
Standard version.  Does not use RSAREF.
KELLY: ssh_connect: getuid 1001 geteuid 1001 anon 1
KELLY: Connecting to sol [194.223.245.192] port 22.
KELLY: Connection established.
KELLY: Remote protocol version 1.5, remote software version 1.2.26
KELLY: Waiting for server public key.
KELLY: Received server public key (768 bits) and host key (1024 bits).
KELLY: Host 'sol' is known and matches the host key.
KELLY: Initializing random; seed file //h//.ssh/random_seed
KELLY: Encryption type: idea
KELLY: Sent encrypted session key.
KELLY: Installing crc compensation attack detector.
KELLY: Received encrypted confirmation.
KELLY: No agent.
KELLY: Trying RSA authentication with key 'pik'
KELLY: Received RSA challenge from server.
Enter passphrase for RSA key 'pik':

    If I now enter the passphrase nothing happens, the window no longer
responds to typing.
I can recover my prompt with a ctl-brk.

    Please could someone point out the foolish mistake that I have injected
into this procedure.

    Thanks,
        Paul


------=_NextPart_000_0027_01BE0C35.0A3FDCB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; I was hoping that someone could cast some =
light on my=20
ssh misery. </FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; I wish to connect to one of my freeBSD =
servers via ssh=20
from a NT environment so I installed B20 onto my NT server/SP4=20
box.</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN><SPAN class=3D197004422-09111998><FONT =
color=3D#000000=20
face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I ran mkpasswd and mkgroup to =
create the=20
relevant /etc/ files.</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN><SPAN class=3D197004422-09111998><FONT =
color=3D#000000=20
face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I then downloaded and extracted =

ssh-1.2.26-cygwinb20.tar.bz2 from <A =
href=3D"mailto:sos AT prospect DOT com DOT ru">Sergey=20
Okhapkin</A> excellent site.</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN><SPAN class=3D197004422-09111998><FONT =
color=3D#000000=20
face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; Setting CYGWIN to &quot;&nbsp; tty&quot; and =
I tried=20
to run ssh-agent. This fails with </FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>Bad=20
modes or owner for directory '/tmp/ssh-pik'<BR>echo Agent creation =
failed, no=20
agent started</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; but ls -l /tmp gives </FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>total=20
0<BR>drwxrwxrwx&nbsp;&nbsp; 1 Administrators&nbsp;=20
None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0 Nov&nbsp; 9 05:24 ssh-pik</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>or=20
after I chown it:-</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>total=20
0<BR>drwxrwxrwa&nbsp;&nbsp; 1=20
pik&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0 Nov&nbsp; 9 05:24 ssh-pik</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>O.K. I=20
say I can do it by hand so I just run ssh1 -v sol </FONT></SPAN><SPAN=20
class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>and I=20
get</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>SSH=20
Version 1.2.26 [i586-pc-cygwin32], protocol version 1.5.<BR>Standard=20
version.&nbsp; Does not use RSAREF.<BR>KELLY: ssh_connect: getuid 1001 =
geteuid=20
1001 anon 1<BR>KELLY: Connecting to sol [194.223.245.192] port =
22.<BR>KELLY:=20
Connection established.<BR>KELLY: Remote protocol version 1.5, remote =
software=20
version 1.2.26<BR>KELLY: Waiting for server public key.<BR>KELLY: =
Received=20
server public key (768 bits) and host key (1024 bits).<BR>KELLY: Host =
'sol' is=20
known and matches the host key.<BR>KELLY: Initializing random; seed file =

//h//.ssh/random_seed<BR>KELLY: Encryption type: idea<BR>KELLY: Sent =
encrypted=20
session key.<BR>KELLY: Installing crc compensation attack =
detector.<BR>KELLY:=20
Received encrypted confirmation.<BR>KELLY: No agent.<BR>KELLY: Trying =
RSA=20
authentication with key 'pik'<BR>KELLY: Received RSA challenge from=20
server.<BR>Enter passphrase for RSA key 'pik':</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; If I now enter the passphrase nothing =
happens, the=20
window no longer responds to typing. </FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =
size=3D2>I can=20
recover my prompt with a ctl-brk.</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; Please could someone point out the foolish =
mistake=20
that I have injected into this procedure.</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp; Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Paul</FONT></SPAN></DIV>
<DIV><SPAN class=3D197004422-09111998><FONT color=3D#000000 face=3DArial =

size=3D2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0027_01BE0C35.0A3FDCB0--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019