Security
cancel
Showing results for 
Search instead for 
Did you mean: 

SSH Authenctication issue with HP-UX

 
Highlighted
Sudharsan2020
Occasional Collector

SSH Authenctication issue with HP-UX

I am trying to configure to connect to HP-UX through Cygwin/Open-SSH. Howver the SSH connectivity was unsuccessful.

Steps tried:

  1. ssh-keygen 
  2. ssh-copy-id -i ~/.ssh/id_rsa.pub USER@SERVER

$ ssh-copy-id -i ~/.ssh/id_rsa.pub USER@SERVER
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/USER/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
LDAP Password:

Number of key(s) added: 1

Now try logging into the machine, with: "ssh 'USER@SERVER'"
and check to make sure that only the key(s) you wanted were added.

3. On connecting: ssh -v USER@SERVER

OpenSSH_7.4p1, OpenSSL 1.0.2k 26 Jan 2017
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to SERVER [SERVER] port 22.
debug1: Connection established.
debug1: identity file /home/USER/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/USER/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2p2+sftpfilecontrol-v1.3-hpn13v12
debug1: match: OpenSSH_6.2p2+sftpfilecontrol-v1.3-hpn13v12 pat OpenSSH* compat 0x04000000
debug1: Authenticating to SERVER:22 as 'USER'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes128-ctr MAC: umac-64@openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: umac-64@openssh.com compression: none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:8PzhU0TKu3v+hNs7bX0QE9YL8Wn7CXa4bnZL0msUrfQ
debug1: Host 'SERVER' is known and matches the ECDSA host key.
debug1: Found key in /home/USER/.ssh/known_hosts:2
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/USER/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
Authentication failed.

1 REPLY 1
Highlighted
Dennis Handly
Acclaimed Contributor

Re: SSH Authentication issue with HP-UX

You might try -vvv for more details.