No subject


Thu Nov 2 09:08:48 EST 2006


I pressed <enter> as empty for both the filename identity and passphrase
then sent the public key to A  under .ssh and saved as authorized_keys
(the first time I sent the key I got message: The authenticity of host
'hostname (host ip)' can't be established)
Now if I run scp from B to A, I ALWAYS get password (of the A host)
prompted! Which I don't want.
*****
 Frustrated, I also tried set up running ssh-agent and ssh-add indentity for
password authentication but I failed.
I am thinking of reset the sshd_config file:  RSAAuthentication to yes.
Will it help make the problem go away?

Thanks so much!
Neil Huynh
Sprint PCS
NTAC Engineer_Sprint PCS_NTAC West_ System Support
Email Address: nhuynh01 at sprintspectrum.com
Office: (949) 225-2805
Mobile: (714) 404-9729





------_=_NextPart_001_01C23983.236E569C
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2655.61">
<TITLE>First time user: set up ssh/scp without having password =
entered.</TITLE>
</HEAD>
<BODY>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">SSH wizards,</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">I hope you all can helps</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">!</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I have two Unix =
Solaris</FONT> <FONT SIZE=3D2 FACE=3D"Arial">(2.8 version)</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">machine</FONT><FONT SIZE=3D2 FACE=3D"Arial">s A =
and B</FONT><FONT SIZE=3D2 FACE=3D"Arial"> installed SSH</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">(A has OpenSSH_3.2.3p</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">1 and B has OpenSSH_3.1p1)</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">, I am trying to set up running scp</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">in both directions between A and B without =
having to enter password.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">From A: I ran</FONT> =
<FONT SIZE=3D2 FACE=3D"Arial">/usr/local/bin/ssh-keygen</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">-</FONT><FONT SIZE=3D2 FACE=3D"Arial">t =
rsa</FONT> </P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I pressed &lt;enter&gt; =
as empty for</FONT> <FONT SIZE=3D2 FACE=3D"Arial">both</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">the filename identity and =
passphrase</FONT><FONT SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT =
SIZE=3D2 FACE=3D"Arial"> then sen</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">t</FONT><FONT SIZE=3D2 FACE=3D"Arial"> the public key to =
B&nbsp; under .ssh and saved as authorized_keys</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">(the first time I sent =
the key I got message:</FONT> <FONT SIZE=3D2 FACE=3D"Arial">Warning: =
Permanently added</FONT> <FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">hostname, host ip</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial"> (DSA) to the list =
of know host</FONT><FONT SIZE=3D2 FACE=3D"Arial">s.)</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Now I could successfully =
to scp FROM A TO B without having password prompted</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">*******</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">In the other direction, =
from B to A:</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">From B: I ran =
/opt/openssh2/bin/ssh-keygen</FONT><FONT SIZE=3D2 =
FACE=3D"Arial"></FONT> <FONT SIZE=3D2 FACE=3D"Arial">-</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">t rsa</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I pressed &lt;enter&gt; =
as empty for</FONT> <FONT SIZE=3D2 FACE=3D"Arial">both</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">the filename identity and =
passphrase</FONT><FONT SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT =
SIZE=3D2 FACE=3D"Arial"> then sen</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">t</FONT><FONT SIZE=3D2 FACE=3D"Arial"> the public key =
to</FONT> <FONT SIZE=3D2 FACE=3D"Arial">A</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp; under .ssh and saved as =
authorized_keys</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">(</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">the first time I sent the key I got message:</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"></FONT> <FONT SIZE=3D2 FACE=3D"Arial">The =
authenticity of host</FONT> <FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">hostname (host ip)</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial"> can</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">t be =
established)</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Now if I run =
scp</FONT><FONT SIZE=3D2 FACE=3D"Arial"> from B to A</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">,</FONT><B> <FONT SIZE=3D2 FACE=3D"Arial">I =
ALWAYS get password</FONT></B><B><FONT SIZE=3D2 FACE=3D"Arial"> (of the =
A host) prompted!</FONT></B><B><FONT SIZE=3D2 =
FACE=3D"Arial"></FONT></B><B> <FONT SIZE=3D2 FACE=3D"Arial">Which I =
don</FONT></B><B><FONT SIZE=3D2 FACE=3D"Arial">'</FONT></B><B><FONT =
SIZE=3D2 FACE=3D"Arial">t want.</FONT></B><B></B></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">***</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">**</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT =
SIZE=3D2 FACE=3D"Arial">Frustrated,</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">I also tri</FONT><FONT SIZE=3D2 FACE=3D"Arial">ed set =
up</FONT> <FONT SIZE=3D2 FACE=3D"Arial">running</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">ssh-agent and ssh-add indentity</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">for password authentication</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">but I failed</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I am thinking of reset =
the sshd_config file:&nbsp; RSAAuthentication to yes.&nbsp; Will it =
help</FONT><FONT SIZE=3D2 FACE=3D"Arial"> make the problem go =
away?</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Thanks so =
much!</FONT></P>

<P ALIGN=3DLEFT><B><I><FONT COLOR=3D"#800080" SIZE=3D2 FACE=3D"Courier =
New">Neil Huynh</FONT></I></B><B><I></I></B></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Tahoma">Sprint PCS</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Tahoma">NTAC Engineer_Sprint =
PCS_NTAC West_ System Support</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Tahoma">Email Address: =
nhuynh01 at sprintspectrum.com</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Tahoma">Office: (949) =
225-2805</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Tahoma">Mobile: (714) =
404-9729</FONT></P>
<BR>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C23983.236E569C--



More information about the openssh-unix-dev mailing list