Skip to content

Installation for RedHat 7 (yum repository)

sshkm edited this page Mar 17, 2017 · 9 revisions

This also works with CentOS, Oracle Linux, Scientific Linux, ...

Install EPEL repository

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Configure SSHKM copr repository

yum install wget
wget https://copr.fedorainfracloud.org/coprs/ploeffler/sshkm/repo/epel-7/ploeffler-sshkm-epel-7.repo -O /etc/yum.repos.d/sshkm.repo

Install SSHKM

yum install sshkm

Customize SSHKM (optional)

Open the configuration file /etc/sshkm/sshkm.conf and adapt the settings to your needs.
It is recommended to use a different database than the pre-configured SQLite file.
SQLite, MySQL/MariaDB and PostgreSQL drivers are built in. For more help go to https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-DATABASES
You can also configure LDAP for authentication.

Configure your Firewall

# allow to connect to HTTP
firewall-cmd --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=http

Login to SSHKM

Open your browser and open the URL http://localhost/sshkm (replace localhost with your server's name)
Login as user admin with password admin

Start using it

Go to settings to change your password and upload the public/private key to use to deploy your future configurations.
Read further documentation, start using SSHKM and deploy your SSH keys.