D
D
DVoropaev2017-08-18 12:12:11
linux
DVoropaev, 2017-08-18 12:12:11

Why can't I connect via ssh, and how can I fix it?

ssh -v [email protected]***.***.***.***
OpenSSH_7.2p2, OpenSSL 1.0.2j-fips  26 Sep 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to ***.***.***.***[***.***.***.***] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/name/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2
ssh_exchange_identification: read: Connection reset by peer

The server is running httpd, which gives a 403 error:
Forbidden
You don't have permission to access / on this server

The operating system on the server is CentOS.
Always logged in using username and password. I can only connect to the server via ssh.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-08-18
@plin2s

ssh client iterates over keys and can't get them.
Check file/folder permissions

A
Alexey Cheremisin, 2017-08-18
@leahch

It looks like you have configured authorization by keys, not by passwords. Generate keys for yourself, put them on the server and you will be happy.
I suspect that the provider is digitalocean, then the keys are uploaded through the admin panel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question