📜 ⬆️ ⬇️

Authentication in OpenSSH Putty by JaCarta PKI

This article describes the algorithm for configuring the Putty SSH client for Windows to work with the JaCarta PKI.

JaCarta PKI - tokens manufactured by Aladdin RD for strict two-factor authentication of users when accessing protected information resources of the enterprise, secure key storage and key containers of software SKZI.

General information


Ssh


SSH is an application level network protocol that allows remote control of the operating system and tunneling of TCP connections. Encrypts all traffic, including transmitted passwords. SSH allows the choice of various encryption algorithms. SSH clients and SSH servers are available for most network operating systems.

SSH supports RSA-key authentication, which provides the maximum level of security for the data channel, as well as two-factor authentication for remote users.
')

Certificate Authentication


To configure SSH operation using RSA certificates, you need to configure an SSH server, as well as an SSH client on the client machine. This document describes the algorithm for configuring SSH operation using a smart card or a JaCarta PKI token for authentication and encryption of an established channel.

Setting up smart cards for SSH client


The order of the server side on the example of Ubuntu


Generating a key pair with ssh-keygen utility



Generating a certificate request with keys from p. 1



Certificate issue in CA openssl



Import public key in Autorized_keys



Donastroyka server part



Writing a certificate to a smart card


It is necessary to transfer the certificate to the smart card. To transfer, you need to collect all the necessary objects in an encrypted container and write it to a smart card.


Certificate validation


ssh -I /usr/lib/x86-athena/libASEP11.so 127.0.0.1

Configuring an SSH Putty client on Windows OS


Run utilities from the distribution kit putty-cac \ executables



To work requires version putty-cac 0.62

Select a certificate in pageant



In general, the certificate appears in the certificate store automatically, but in some cases you may need to add it manually.

Starting and Configuring Putty


Connection / SSH / CAPI tab


Login to SSH session by certificate


After entering the user's PIN, an SSH session will be established.

Source: https://habr.com/ru/post/327868/


All Articles