logon to a client unix box as user "evil"
>
>su - hero
enter evil's password
>hero$> ssh-kengen -t dsa
no passphase, id_dsa / id_dsa.pub generated.
>hero$> scp /home/hero/.ssh/id_dsa.pub
evil@scp_server:/tmp/id_dsa.pub
now the scp_server,
logon as evil
>su - hero
>hero>mv id_dsa.pub /home/hero/.ssh/authorized_keys2
verify permission of both pub / private file
now back to the client
>hero>ssh -v -v -v hero@scp_server OR scp_server
...
....
......
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/hero/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug3: sign_and_send_pubkey
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
Please help me...............