Category: centos

0

How to disable SSH login for the root user

Create a new user. In the following example, we will name it bob. 123root# useradd -m bobroot# id bobuid=1000(bob) gid=1000(bob) groupes=1000(bob) Set the password for the new user. 12345root# pas

0

How to change OpenSSH port on CentOS 7

Before beginning# These are the steps to do on the SSH server. Be sure to do all the steps before exiting SSH connection if you are connected via SSH. This config was tested for default CentOS 7 iso.