1
I want to entry to my cpanel server, but I can't do it. This is what I did. I am going to the login page of my server on cpanel and I got in. Then:
Security -> SSH Access -> Manage SSH Key -> Generate a New Key -> Back -> Public Keys -> Manage -> Authorization -> Back
After that:
I download the private key and I copy in the .ssh (in my local machine) directory and finally I tried to get in using this command:
ssh <usernameserver>@<serverip>
but... I get a reject connection, using ssh -vvv
I get this:
penSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "<ipserver>" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to <ipserver> [<ipserver>] port 22.
debug1: Connection established.
debug1: identity file /home/<userlocalmachine>/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
ssh_exchange_identification: read: Connection reset by peer
what did I wrong?
My OS is ubuntu 16.04
Did you mean to say you downloaded the private, not public, key? You need the private key on your local machine. – tanner – 2018-08-17T22:57:06.167
@TannerFilip no, sorry I edited the question your right I have the private key on my local machine – ILoveTheDoggos – 2018-08-18T00:50:33.353