Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
## Change to other port is recommended
## Sets listening address on server. default=0.0.0.0
## Enforcing SSH Protocol 2 only
## Disable direct root login, with no you need to login with admin user, then "su -" you into root
## Disables X11Forwarding
## Checks users on their home directority and rhosts, that they arent world-writable
## The option IgnoreRhosts specifies whether rhosts or shosts files should not be used in authentication
## RhostsAuthentication specifies whether sshd can try to use rhosts based authentication.
## Adds a login banner that the user can see
## Enable / Disable sftp server
#Subsystem sftp /usr/libexec/openssh/sftp-server
## Add users that are allowed to log in
I have to change it later no. If the someuser login works, i will change it to no.
I created that someuser with the following command
adduser someuser && passwd someuser
But when i try to connect using that port with root or someuser, i am getting error. I am not able to connect.
Nov 30 21:09:49 sv1 su: pam_unix(su:session): session opened for user someuser by root(uid=0)
Nov 30 21:11:23 sv1 su: pam_unix(su-l:session): session opened for user someuser by root(uid=0)
Nov 30 21:50:57 sv1 su: pam_unix(su-l:session): session closed for user someuser
Nov 30 21:51:00 sv1 su: pam_unix(su:session): session closed for user someuser
These are the values i got from internet. I my first post, i have added those.
Do not mess with config files until you understand what you're doing. I guarantee you that your system will be more secure if you change nothing at all than screw around by copy/pasting things from the Net without understanding their effects.