Configure SSH for DB2 UDB V9

Configure SSH for DB2 UDB V9

am 19.09.2007 01:09:29 von Al

I'm trying to configure ssh so that I can log back into the same user
ID using SSH without been asked for a password. The steps I followed
are:

/bin/ssh-keygen -t rsa #or dsa
cd .ssh
mv id_rsa identity or dsa
chmod 600 identity
cat id_rsa.pub >> authorized_keys #or dsa
chmod 644 authorized_keys
rm id_rsa.pub
/bin/ssh-keyscan -t rsa Mach1,Mach1.ab.abcd,111.111.11.111 >>
known_hosts

So, hoping that when I run: ssh Mach1 echo hi
I will not be prompted for a password, but no luck so far

Machine:SunOS 5.10
SSH Version: Sun_SSH_1.1, SSH protocols 1.5/2.0

Any help?

Re: Configure SSH for DB2 UDB V9

am 19.09.2007 04:04:57 von Bill Marcum

On Tue, 18 Sep 2007 16:09:29 -0700, Al
wrote:
>
>
> I'm trying to configure ssh so that I can log back into the same user
> ID using SSH without been asked for a password. The steps I followed
> are:
>
> /bin/ssh-keygen -t rsa #or dsa
> cd .ssh
> mv id_rsa identity or dsa
> chmod 600 identity
> cat id_rsa.pub >> authorized_keys #or dsa
> chmod 644 authorized_keys
> rm id_rsa.pub
> /bin/ssh-keyscan -t rsa Mach1,Mach1.ab.abcd,111.111.11.111 >>
> known_hosts
>
> So, hoping that when I run: ssh Mach1 echo hi
> I will not be prompted for a password, but no luck so far
>
> Machine:SunOS 5.10
> SSH Version: Sun_SSH_1.1, SSH protocols 1.5/2.0
>
> Any help?
>
Have you tried ssh -v? I think authorized_keys is supposed to have 600
permission, at least that's what it has here. Also, the file names are
determined by the protocol, so you shouldn't need to rename id_rsa or
id_dsa. Use the default protocol unless you connect to a host that
doesn't recognize that protocol.


--
He hath eaten me out of house and home.
-- William Shakespeare, "Henry IV"