Skip to main content

about sshd settings

ssh (secure shell)

- service name : sshd

- log file
/var/log/secure*
/var/log/audit/audit.log

- default configuration files and ssh ports
/etc/ssh/sshd_config     --> openssh server configuration file
/etc/ssh/ssh_config     --> openssh client configuration file
~/.ssh/     --> user ssh configuration directory
~/.ssh/authorized_keys    ---> lists public key (RSA or DSA) that can be used to log into the user's account
/etc/nologin     --> if the file exists, sshd refuses to let anyone except root log in
/etc/hosts.allow  
/etc/hosts.deny     --> these two file are access control list that should be enforced by tcp-wrappers defined here

- ssh default port    ---> tcp:22

- examples of using tcp wrappers for sshd
allow ssh only from 192.168.1.2 172.16.23.12
put the line in /etc/hosts.allow
sshd : 192.168.1.2 172.16.23.12
vsftpd : ALL

put the line in /etc/hosts.deny
ALL : ALL

- enable warning banner
put the line in /etc/ssh/sshd_config
Banner /etc/banner      (the file name banner must exists in /etc)

Comments

Popular posts from this blog

Installing Qualcomm Atheros AR8162 Fast Ethernet Driver on Lenovo G400

I was preparing Lenovo G400 laptop for my linux class, after I installed CentOS 6.5 on it, tada,,,, my ethernet adapter won't show up. I checked with ifconfig command but where the hell my eth0 ??. Then i type the command below : # lspci -v 01:00.0 Ethernet controller: Qualcomm Atheros AR8162 Fast Ethernet (rev 10)     Subsystem: Lenovo Device 3802     Flags: bus master, fast devsel, latency 0, IRQ 32     Memory at 90500000 (64-bit, non-prefetchable) [size=256K]     I/O ports at 2000 [size=128]     Capabilities: <access denied>     Kernel driver in use: alx It seem my wired network adapter do not have its driver. After searching on the net then I find this great article. I wrote it out on my blog to make it sure I have notes for the trouble. This is how we troubleshoot it :   First download this file : alx-linux-v2.0.0.6.rar unrar it, run make command, change directory...

All certification

Honor Code Certificate from edX - Linux Foundation