How to change ssh protocol version, login timeout and listening port

SME standard protocol version is 1, login timeout 600 sec and ssh port is 22. If you are paranoid like me, you can change these values with a custom template to whatever suits your needs. In the sample the protocol is changed to 2, login timeout to 60 sec, port to 222. Check /etc/ssh/sshd_config and make a backup of it. Check if /etc/e-smith/templates-custom/etc/ssh/sshd_config is already existent. If yes, you can skip the first step. Issue following commands on the console:

'1. mkdir -p /etc/e-smith/templates-custom/etc/ssh/sshd_config'
'2. touch /etc/e-smith/templates-custom/etc/ssh/sshd_config/10Port'
'3. touch /etc/e-smith/templates-custom/etc/ssh/sshd_config/16Protocol'
'4. touch /etc/e-smith/templates-custom/etc/ssh/sshd_config/20LoginGraceTime'
'5. echo "Port 222" > /etc/e-smith/templates-custom/etc/ssh/sshd_config/10Port'
'6. echo "Protocol 2" > /etc/e-smith/templates-custom/etc/ssh/sshd_config/16Protocol'
'7. echo "LoginGraceTime 60" > /etc/e-smith/templates-custom/etc/ssh/sshd_config/20LoginGraceTime'
'8. /sbin/e-smith/expand-template /etc/ssh/sshd_config'
'9. /sbin/e-smith/signal-event remoteaccess-update'

Recheck /etc/ssh/sshd_config and compare with your backup, if the desired entries are there. Don't forget to adjust your ssh settings, if using Putty or WinSCP or whatever.
ldkeen