i am trying to setup the ssh login between a linux box and freeBSD server with Cpanel.
i have generated the private, public keys on the linux box then copied to freeBSD server
ssh-keygen -t dsa
......
you can see below the debug msg when i try to ssh to the server.
debug: SshAppCommon/sshappcommon.
c:154/ssh_
app_get_gl
obal_regex
_context: Allocating global SshRegex context.
warning: PubkeyAuthentication configuration keyword is deprecated. Use AllowedAuthentications.
warning: Unrecognized configuration parameter authorizedkeysfile
warning: Unrecognized configuration parameter subsystem
debug: Connecting to xxx.x.xxx.xxx, port 22...
debug: Ssh2/ssh2.c:1956/main: Entering event loop.
debug: Ssh2Client/sshclient.c:132
8/ssh_clie
nt_wrap: Creating transport protocol.
debug: SshAuthMethodClient/sshaut
hmethodc.c
:137/ssh_c
lient_auth
entication
_initializ
e: Added "publickey" to usable methods.
debug: SshAuthMethodClient/sshaut
hmethodc.c
:137/ssh_c
lient_auth
entication
_initializ
e: Added "password" to usable methods.
debug: Ssh2Client/sshclient.c:136
0/ssh_clie
nt_wrap: Creating userauth protocol.
debug: client supports 2 auth methods: 'publickey,password'
debug: Ssh2Common/sshcommon.c:496
/ssh_commo
n_wrap: local ip = 10.0.0.7, local port = 60787
debug: Ssh2Common/sshcommon.c:498
/ssh_commo
n_wrap: remote ip = xxx.x.xxx.xxx, remote port = 22
debug: SshConnection/sshconn.c:18
89/ssh_con
n_wrap: Wrapping...
warning: Need basic cursor movement capability, using vt100
debug: Remote version: SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
debug: Ssh2Transport/trcommon.c:1
373/ssh_tr
_input_ver
sion: Remote version has rekey incompatibility bug.
debug: Ssh2Transport/trcommon.c:1
376/ssh_tr
_input_ver
sion: Remote version is OpenSSH, KEX guesses disabled.
debug: Ssh2Transport/trcommon.c:1
717/ssh_tr
_negotiate
: lang s to c: `', lang c to s: `'
debug: Ssh2Transport/trcommon.c:1
783/ssh_tr
_negotiate
: c_to_s: cipher aes128-cbc, mac hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1
786/ssh_tr
_negotiate
: s_to_c: cipher aes128-cbc, mac hmac-sha1, compression none
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:291
/ssh_commo
n_special:
Received SSH_CROSS_STARTUP packet from connection protocol.
debug: Ssh2Common/sshcommon.c:341
/ssh_commo
n_special:
Received SSH_CROSS_ALGORITHMS packet from connection protocol.
debug: server offers auth methods 'publickey,keyboard-intera
ctive'.
debug: Ssh2AuthPubKeyClient/authc
-pubkey.c:
1323/ssh_c
lient_auth
_pubkey_ad
d_file_key
s: adding keyfile "/root/.ssh2/id_dsa_1024_a
" to candidates
debug: server offers auth methods 'publickey,keyboard-intera
ctive'.
debug: Ssh2AuthClient/sshauthc.c:
316/ssh_au
thc_comple
tion_proc:
Method 'publickey' disabled.
debug: server offers auth methods 'publickey,keyboard-intera
ctive'.
debug: Ssh2Common/sshcommon.c:136
/ssh_commo
n_disconne
ct: DISCONNECT received: No further authentication methods available.
warning: Authentication failed.
debug: Ssh2/ssh2.c:117/client_dis
connect: locally_generated = TRUE
Disconnected; no more authentication methods available (No further authentication methods available.).
debug: Ssh2Client/sshclient.c:139
3/ssh_clie
nt_destroy
: Destroying client.
debug: SshConnection/sshconn.c:19
37/ssh_con
n_destroy:
Destroying SshConn object.
debug: Ssh2Client/sshclient.c:144
6/ssh_clie
nt_destroy
_finalize:
Destroying client completed.
debug: SshAuthMethodClient/sshaut
hmethodc.c
:162/ssh_c
lient_auth
entication
_uninitial
ize: Destroying authentication method array.
the error on /var/log/auth.log is:
Jun 19 15:28:21 cpanel sshd[52893]: Received signal 15; terminating.
Jun 19 15:28:21 cpanel sshd[56635]: Server listening on :: port 22.
Jun 19 15:28:21 cpanel sshd[56635]: Server listening on 0.0.0.0 port 22.
Jun 19 15:28:27 cpanel sshd[56636]: error: key_read: uudecode AAAA... (the keys)
Jun 19 15:28:27 cpanel sshd[56636]: error: key_read: uudecode AAAA... (the keys again)
can anyone tell me what went wrong?
first of all, i don't seem to find the right sshd_config file on my linux box...
thanks
Start Free Trial