I encounter "Permission denied (publickey,keyboard-intera
ctive,host
based) when using "ssh server".
The debugging messages on server are as follows:
# /usr/local/sbin/sshd -d &
debug1: sshd version OpenSSH_3.6.1p1
701
# debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 10.3.30.234 port 32809
debug1: Client protocol version 2.0; client software version OpenSSH_3.6.1p1
debug1: match: OpenSSH_3.6.1p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.6.1p1
debug1: permanently_set_uid: 1002/100
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUES
T received
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user cindy service ssh-connection method none
debug1: attempt 0 failures 0
debug1: Starting up PAM with username "cindy"
debug1: PAM setting rhost to "10.3.30.234"
Failed none for cindy from 10.3.30.234 port 32809 ssh2
Failed none for cindy from 10.3.30.234 port 32809 ssh2
debug1: userauth-request for user cindy service ssh-connection method publickey
debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 1001/14 (e=0/1)
debug1: trying public key file /.ssh/authorized_keys
debug1: restore_uid: 0/1
debug1: temporarily_use_uid: 1001/14 (e=0/1)
debug1: trying public key file /.ssh/authorized_keys
debug1: restore_uid: 0/1
Failed publickey for cindy from 10.3.30.234 port 32809 ssh2
debug1: userauth-request for user cindy service ssh-connection method publickey
debug1: attempt 2 failures 2
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 1001/14 (e=0/1)
debug1: trying public key file /.ssh/authorized_keys
debug1: restore_uid: 0/1
debug1: temporarily_use_uid: 1001/14 (e=0/1)
debug1: trying public key file /.ssh/authorized_keys
debug1: restore_uid: 0/1
Failed publickey for cindy from 10.3.30.234 port 32809 ssh2
debug1: userauth-request for user cindy service ssh-connection method keyboard-interactive
debug1: attempt 3 failures 3
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=cindy devs=
debug1: kbdint_alloc: devices ''
Failed keyboard-interactive for cindy from 10.3.30.234 port 32809 ssh2
Connection closed by 10.3.30.234
debug1: Calling cleanup 0x3af04(0x0)
debug1: Calling cleanup 0x30010(0x0)
I would also like to have the detail steps to setup ssh between a client and a server.
Start Free Trial