S
S
SeoNk2017-05-12 09:59:18
SSH
SeoNk, 2017-05-12 09:59:18

How to configure authorization on the server?

Installed a new CentOS 7 system on the server.
Logged in as root and executed the commands:
Created a user:
# adduser stas
# passwd stas
# gpasswd -a stas wheel
Edited the /etc/ssh/sshd_config file - added three lines to the very beginning of the file:
Port 1559
PermitRootLogin no
AllowUsers stas
Rebooted: reboot
Now I can't log in - when I try to log in I get the following messages:
ssh -p 1559 [email protected]
ssh: connect to host 12.345.678.910 port 1559: No route to host
ssh -p 22 [email protected] 678.910
ssh: connect to host 12.345.678.910 port 22: Connection refused

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question