Skip to content

Instantly share code, notes, and snippets.

View newton-per-sqm's full-sized avatar
🎯
Focusing

Pascal Muster newton-per-sqm

🎯
Focusing
View GitHub Profile
@newton-per-sqm
newton-per-sqm / SSH-Config on Windows10.md
Last active February 16, 2021 23:11 — forked from danieldogeanu/MakePowerShellRememberSSHPassphrase.md
How to make Powershell remember the SSH key passphrase.

You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:

  1. Generate your SSH identity file:
  • Open a PowerShell Window and type ssh-keygen -t <key-format> -b <bit-length> -C "<key-message>" into it.
  • Choose a key-format of your interest:
    • RSA (secure): 2048, 3072 or 4096 key bits possible, highly secure only with long key lengths.
    • ed25519 (very secure): only 256 key bits possible (-b option unused), but highly secure and high performing.
    • ECDSA (very secure): 256, 384 or 521 key bits possible, highly secure.
    • DSA (weak, maybe disabled): 1024 key bits possible, weak encryption, not recommended.
  • I personally prefer long RSA keys or ed25519 encryption method.