Please read the SecSign ID PAM Tutorial before using the SecSign ID PAM for SSH Authentication. Follow steps 3 to 5 to configure and install PAM correctly.
Note: Using the FTP protocol without additional security measurements results in unencrypted data transfer and is regarded as unsafe. Passwords and other data are transmitted in plain text and can be wiretapped. Using FTP with SSL/TSL generates encrypted data transfer with FTPS and the SecSign ID Two-Factor Authentication acts as additional security measurement.
Since there are several ways to encrypt FTP connections we use the term FTP in the following tutorial – an encrypted connection is implied, even with the additional protection of the SecSign ID Two-Factor Authentication eliminating the thread of user data compromise.
We use the common FTP server “ProFTPd” for this tutorial. Other FTP server, for example “vsftpd” support PAM as well and are connected as or similar to the following description.
Overview on the configuration and installation:
pam_secsignid.soin the PAM library (usually
Install the ProFTPd as standalone version via apt-get install proftpd openssl. Open the configuration file/etc/proftpd/proftpd.conf and adjust all envirnomental settings for the FTP like data transfer via TLS.
The ProFTPd configuration script verifies the system’s support for PAM and runs mod_auth_pam automatically.
With other FTP server (like “vsftpd”) you may have to stare the utilization of PAM manually.
To grant the user some time to accept the login on his smartphone the values in TimeoutNoTransfer, TimeoutStalled und TimeoutIdle should be extended accordingly, providing at least two minutes.
Open the configuration file for the ProFTPd PAM settings/etc/pam.d/proftpd and change the following parameter:
auth [success=1 default=ignore] pam_secsignid.so
auth requisite pam_deny.so
auth required pam_permit.so
#auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=$
Save the file and reboot the FTP server by employing service proftpd restart.
In the next step the FTP server can be tested. Please adjust the timeout value in the FTP client program (for example FileZilla) to two minutes to allow the user to accept the session on his smartphone.
The library libcurl needs to be installed in the standard path, otherwise make fails. If libcurl is not on the standard path the compilation needs to be executed manually.
If the authentication fails the debug- and logmodus should be activated (see PAM debug- and logmodus) and the output should be written in a file. This is necessary since PAM normally needs to be silent and does not allow for output for security reasons. If no log- or debug-files are generated the paths provided in secsignid.c are incorrect or no read-and-write authorizations are available.
A log-file is produced stating all errors. It is determined if libcurl works accurate, if the SecSign ID server is available, if port 443 is available to communicate with the server, if the configuration file is available and if PAM has reading authorization.
A debug file is created which records the interface communication. It is determined wether errors in the communication persists because no SecSign ID for the specific user was found or if there are errors in a different parameter, for example the service name.
We provide an ever growing list of APIs and plugins to easily integrate the SecSign ID Two-Factor Authentication in any project. An overview is available at Plugin and APIs.
We do not only offer APIs in different programming languages but also plugins for CMS, Server and VPN environments, oAuth2 and many more. These plugins use our APIs and offer additional functionalities, for example user management, easy and native installation, logging or integration in firewalls or Active Directory.
The JIRA plugin for example uses the JAVA-API. The PHP-Api and JS-API is used by WordPress, Joomla, Drupal, Typo3 and many more. The ASP.net/C#-API is used for the Windows and Cisco VPN and the C-API is used for protecting Unix SSH services. The Objective-C API is used by our AppleTV and iPhone/iPad apps.
You can experience the SecSign ID two-factor authentication and the two-factor login by simply integrating the plugin into your website or test environment. Or you can try out the login process on our website without having to register first. You already have a SecSign ID or you want one? Login now and use the portal or use our hassle free registration.
See for yourself how fast and convenient the login process using challenge-response authentication with 2048-bit key pairs is. There is no need for passwords, and no passwords or other confidential information are ever transmitted. It is easy to integrate and simple to use.
For more information about the patented SafeKey procedure and it's unique security can be found here.
If you are missing an API for the programming language you are working with, feel free to contact us and we’ll find a solution with you. If you need help with the integration into an existing system or you can’t find the plugin for your content management system you are working with, don’t hesitate to contact our support team.
Choose between our SecSign ID Cloud or operate your own on-premise Two-Factor Authentication server.
Operate your own YourBrand ID app - Two-Factor Authentication customized to your needs.
Integrate SecSign ID Two-Factor Authentication in existing apps with our ready-to-use SDK.
Use the Two-Factor Authentication Server to secure your company Active Directory/LDAP. Your own Identity and Access Management System, for example for mandatory updates and additional security features.
Integration in any login environment: web, local, VPN, remote desktop, mobile logins and many more.
No need for complex integration: we have plugins for almost all environments.
Want to learn more about SecSign’s innovative and highly secure
solutions for protecting your user accounts and sensitive data?
Use our contact form to submit your information, and a SecSign sales representative will contact you within one business day.
If you need assistance with an existing SecSign account or product
installation, please see the FAQs for more information on the most common questions. You don’t find the solution to your problem? Don’t hesitate to contact the
I am Interested in