OK, some rpm-basics are needed here
[root@<...> rpms]# rpm -ivh e-smith-sshd10022-0.1.0-1.noarch.rpm
Preparing... ########################################### [100%]
package e-smith-sshd10022-0.1.0-1 is already installed
So this tells you it was installed correctly. The preferred way to install an rpm is "rpm -Uvh ..." as this will take care of both installs and upgrades.
[root@<...> rpms]# rpm -e e-smith-sshd10022-0.1.0-1.noarch.rpm
error: package e-smith-sshd10022-0.1.0-1.noarch.rpm is not installed
To remove a package, you must give the name of the package
without the .noarch.rpm. So to remove the package just run "rpm -e e-smith-sshd10022-0.1.0-1"
Quote:
# Configure sshd
/sbin/e-smith/expand-template /etc/ssh/sshd_config
/etc/init.d/sshd restart
# Open port on firewall
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/etc/init.d/masq restart
# Restore sshd
/sbin/e-smith/expand-template /etc/ssh/sshd_config
/etc/init.d/sshd restart
# Close port on firewall
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/etc/init.d/masq restart
So what it tells me is to edit a template, inst it?
No, these commands only insert the templates in the config files and restart the relevant services.
Since the package is still installed on your server, you should now be able to log in on your server using a ssh client on port 10022. Make sure you tell your client to use that port and not the standard port 22.
The actual template sniplets can be found in
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq/45Open10022
and
/etc/e-smith/templates-custom/etc/ssh/sshd_config/11Port10022
Change the port number to your liking, issue the above commands and you should be OK.
But why bother, 10022 works just fine and using an "unknown" portnumber doesn't add anything to your security.
Michiel