Common Linux Commands – Part 4

Common Linux Commands – Part 4

4. Log Directory

/var/log # Main log directory, /var/log/secure # Logs related to user login security, a large file indicates someone is attempting to crack passwordscat /var/log/secure | grep login # Search for login-related strings in the secure file/etc/ssh/sshd_config # Modify this file to enable passwordless loginid_rsa.pub # Public key file> # Overwrite original file content>> # Append content to the fileauthorized_keys # Server stores remote computer's SSH passwordless login information (i.e., public key)systemct1 sshd start # Start SSH service systemct1 sshd stop # Stop SSH service systemct1 sshd restart # Restart SSH servicehistory -c # Clear command history

Leave a Comment