Here is the problem: I have created two user accounts stu01 & stu02 with passwor
ID: 3641438 • Letter: H
Question
Here is the problem: I have created two user accounts stu01 & stu02 with passworda for both accounts. I edited the file /etc/ssh/sshd_config file, and configureed OpenSSH with the following: find the line with "PermitRootLogin", uncommented it to no, find the line with "Banner none", uncommented ti to /etc/issue, and went to the bottom of the file and added a line that says "Allow Users stu01"(explicitly allow only the regular user stu01 to login in via OpenSSH}. So what do I do to edit the /etc/issue file, and change the content to: Warning: Authorized users only. If you are not authorized to login to this server, disconnect. And how do I restart sshd by running service sshd restart? ( I believe I type service sshd restart in the command line) However how do I from my desktop, login to my server using the stu01 account and do I do the same to attempt to login my server using stu02, and does the same command apply to login to my server using the root account?Explanation / Answer
I'm assuming you're on Red Hat or one of its derivatives. To restart the service run the "service sshd restart" after logging into the server directly as root (not via ssh).