User Tools

Site Tools


infrastructure:ssh

This is an old revision of the document!


SSH

SSH on Windows with smartcard authentication

  1. Import the certificate
    1. Run kageant.exe
    2. Right click kageant tray icon
    3. Add certificate
    4. Choose certificate
  2. Login using smartcard authentication
    1. Ensure that kageant.exe is still running in the system tray
    2. Run Kitty
    3. Connection | SSH | Auth | [x] Attempt authencation using Pageant
    4. Optionally disable “Attempt keyboard-interactive auth (SSH-2)” to prevent a password login and force the smartcard use
    5. Optionally enable “Allow agent forwarding” to enable further logins via smartcard authentication

Converting X509 certificate to SSH public key

  1. Export in Windows
    1. certmgr.msc
    2. Browse to certificate
    3. Open certificate (double-click)
    4. Details
    5. Export to file
    6. (*) No, don't export private key
    7. (*) Base-64 encoded X.509 (.CER)
  2. > openssl x509 -in certificate.cer -pubkey -noout > certificate.pem
  3. > ssh-keygen -i -m PKCS8 -f certificate.pem
infrastructure/ssh.1526389038.txt.gz · Last modified: (external edit)