infrastructure:ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| infrastructure:ssh [2018-07-19 12:01] – mrks | infrastructure:ssh [2021-01-26 21:23] (current) – mrks | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SSH ====== | ====== SSH ====== | ||
| + | |||
| + | ===== Use SSH keys ===== | ||
| + | |||
| + | In case there is no '' | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * Paste the public key to the file | ||
| + | |||
| + | Set the permissions for the '' | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| ===== SSH and SCP on Windows with smartcard authentication ===== | ===== SSH and SCP on Windows with smartcard authentication ===== | ||
| Line 33: | Line 47: | ||
| - | ===== Converting X509 certificate to SSH public key ===== | + | ===== Converting |
| - | + | ||
| - | * Export in Windows | + | |
| - | * certmgr.msc | + | |
| - | * Browse to certificate | + | |
| - | * Open certificate by double-clicking or right-click and " | + | |
| - | * Details | + | |
| - | * Export to file | + | |
| - | * (*) No, don't export private key | + | |
| - | * (*) Base-64 encoded X.509 (.CER) | + | |
| - | * Run: '' | + | |
| - | * Run: '' | + | |
| - | * The SSH key is displayed | + | |
| + | * Using OpenSSL | ||
| + | * Export in Windows | ||
| + | * certmgr.msc | ||
| + | * Browse to certificate | ||
| + | * Open certificate by double-clicking or right-click and " | ||
| + | * Details | ||
| + | * Export to file | ||
| + | * (*) No, don't export private key | ||
| + | * (*) Base-64 encoded X.509 (.CER) | ||
| + | * Run: '' | ||
| + | * Run: '' | ||
| + | * The SSH key is displayed | ||
| + | * Using PuTTY-CAC | ||
| + | * Open PuTTY-CAC | ||
| + | * Connection > SSH > Certificate > Set CAPI Cert... | ||
| + | * Certificate string for authorized keys file: Copy to Clipboard | ||
| ===== Using Pageant with SSH in Cygwin and MinGW ===== | ===== Using Pageant with SSH in Cygwin and MinGW ===== | ||
| Line 61: | Line 78: | ||
| * MinGW | * MinGW | ||
| * $ eval $(< | * $ eval $(< | ||
| + | |||
| + | |||
| + | ===== Using a Proxy with SSH in Cygwin and MinGW ===== | ||
| + | |||
| + | |||
| + | * '' | ||
| + | * ncat is part of [[https:// | ||
| Line 70: | Line 94: | ||
| * '' | * '' | ||
| * Use a different known hosts file when creating multiple tunnels: '' | * Use a different known hosts file when creating multiple tunnels: '' | ||
| + | * SSH into remote-user@remote-host behind jump-user@jump-server: | ||
| + | |||
| + | SSH config with jump server: | ||
| + | < | ||
| + | # SSH into remote-user@remote-host behind jump-user@jump-server | ||
| + | Host my-remote | ||
| + | ForwardAgend yes | ||
| + | Hostname remote-host | ||
| + | User remote-user | ||
| + | ProxyJump jump-user@jump-server | ||
| + | </ | ||
infrastructure/ssh.1531994477.txt.gz · Last modified: (external edit)
