Not recognizing public key
From: Crypix (crypix_at_gmail.com)
Date: 04/04/05
- Previous message: Jim Horwath: "SSH 4.0 and AIX"
- Next in thread: David Thornton: "Re: Not recognizing public key"
- Reply: David Thornton: "Re: Not recognizing public key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 04 Apr 2005 13:29:47 -0400 To: secureshell@securityfocus.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am at my wit's end. I am trying to setup a ssh passwordless key
authentication between two servers (unfortunately using the root
account).
On Host A I generated my keys using ssh-keygen -t dsa as root with
blank
passphrase. I named them /root/.ssh/remotehost.id_dsa.
I created a file called config inside /root/.ssh:
Host Host B
User root
Compression yes
Protocol 2
RSAAuthentication yes
StrictHostKeyChecking no
ForwardAgent yes
ForwardX11 yes
IdentityFile /root/.ssh/remotehost.id_dsa
I then copied remotehost.id_dsa.pub to the authorized_key2 file on
Host B.
I then run the following from Host A to test:
[root@HOSTA .ssh]# ssh -v hostb
__OUTPUT__
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: Connecting to hostB [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.5p1
debug1: match: OpenSSH_3.5p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'hostB' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Offering public key: /root/.ssh/id_dsa
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: password
root@hostB's password:
Nothing I type for password works..
Any help or suggestions would be much appreciated.
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQlF5lavE15SFM+JaEQKDQwCfa1LXg9IXkVe3ykLSnH28eeWgoq0Anje+
PdGUgyOlPqw3z8VCXjevv9s7
=1PI1
-----END PGP SIGNATURE-----
- Previous message: Jim Horwath: "SSH 4.0 and AIX"
- Next in thread: David Thornton: "Re: Not recognizing public key"
- Reply: David Thornton: "Re: Not recognizing public key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|