OpenSSH Howto (1)
Installation
Synchronize the repository and show dependencies:
emaint --auto sync
emerge --update --pretend 'net-misc/openssh'
Install the package:
emerge --update 'net-misc/openssh'
Configuration
Server
Edit the following files:
Validate the configuration:
sshd -t
Start the daemon:
/etc/init.d/sshd start
Include the daemon to the start procedure:
rc-update add 'sshd' 'default'
rc-update show | grep 'sshd'
Output:
sshd | default
Client
Edit the following files:
Test
Server
Test the listener's availability:
netstat --numeric --program --listening --all --tcp --udp | grep ':22 '
Output:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 29771/sshd
Download and run ssh-audit[1]:
python 'ssh-audit.py' '10.0.0.20'
Client
Start connection:
ssh 'alex@neon.raysoft.loc'