Dear All,
Can anybody help me? I'm trying to run ssh2 (2.3.0) using
publickey and no passwords. On 'mybox', root runs:
ssh2 dest -l user1 -v ls
produces:
debug: connecting to dest...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: SshAuthMethodClient/sshauthmethodc.c:105/ssh_client_authentication_initialize:
Added "hostbased" to usable methods.
debug: SshAuthMethodClient/sshauthmethodc.c:105/ssh_client_authentication_initialize:
Added "publickey" to usable methods.
debug: SshAuthMethodClient/sshauthmethodc.c:105/ssh_client_authentication_initialize:
Added "password" to usable methods.
debug: Ssh2Client/sshclient.c:1104/ssh_client_wrap: creating userauth protocol
debug: Ssh2Common/sshcommon.c:487/ssh_common_wrap: local ip = 10.1.1.12, local port =
1106
debug: Ssh2Common/sshcommon.c:489/ssh_common_wrap: remote ip = 10.1.0.17, remote port
= 22
debug: SshConnection/sshconn.c:1853/ssh_conn_wrap: Wrapping...
warning: Need basic cursor movement capablity, using vt100
debug: Ssh2Transport/trcommon.c:593/ssh_tr_input_version: Remote version:
SSH-1.99-2.3.0 SSH Secure Shell (non-commercial)
debug: Ssh2Transport/trcommon.c:1068/ssh_tr_negotiate: c_to_s: cipher 3des-cbc, mac
hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1071/ssh_tr_negotiate: s_to_c: cipher 3des-cbc, mac
hmac-shm connection protocol.
debug: Ssh2Common/sshcommon.c:347/ssh_common_special: Received SSH_CROSS_ALGORITHMS
packet from connection protocol.
debug: Ssh2AuthHostBasedClient/authc-hostbased.c:597/ssh_client_auth_hostbased: Child:
Execing ssh-signer...(path: ssh-signer2)
debug: Ssh2AuthHostBasedClient/authc-hostbased.c:325/auth_hostbased_received_packet:
ssh-signer returned SSH_AUTH_HOSTBASED_SIGNATURE
debug: ssh_pipe_stream_destroy
debug: ssh_sigchld_real_callback
debug: ssh_sigchld_process_pid: no handler for pid 5758 code 0
debug:
Ssh2AuthPubKeyClient/authc-pubkey.c:777/ssh_client_auth_pubkey_agent_list_complete:
adding keyfile "/root/.ssh2/id_dsa_1024_mybox" to candidates
debug: Ssh2AuthClient/sshauthc.c:309/ssh_authc_completion_proc: Method 'publickey'
disabled. ***********
debug: Ssh2AuthPasswdClient/authc-passwd.c:82/ssh_client_auth_passwd: Starting
password query...
user1's password:
debug: Ssh2AuthPasswdClient/authc-passwd.c:82/ssh_client_auth_passwd: Starting
password query...
user1's password:
debug: Ssh2AuthPasswdClient/authc-passwd.c:82/ssh_client_auth_passwd: Starting
password query...
Everything seems to be going fine until **********, then for some reason
it changes its mind suddenly about using publickey. Then it gets worse:
after that it drops back to using passwords, BUT refuses the correct
password - can't connect at all!
Some of dest's sshd2_config file:
AllowedAuthentications publickey,password,hostbased
Ssh1Compatibility no
dest:~user1/.ssh2/authorization contains:
Key mybox_root
and dest:~user1/.ssh2/mybox_root.pub is a copy of id_dsa_1024_mybox.pub
id_dsa_1024_mybox and ..mybox.pub were generated by ssh-keygen2 on
mybox.
mybox:/root/.ssh2/identification contains:
IdKey id_dsa_1024_mybox
mybox runs Redhat 5.x I think. dest runs RH7.0
Can anyone tell me what I might be doing wrong?
Thanks for any help
Glen
PS I never got confirmation of my subscription to the mailing list -
please CC responses to me.
--
Glen Davison [EMAIL PROTECTED]
Computer System Administrator phone: +61 2 9385 7018
Maths, UNSW fax: +61 2 9385 7123