Tag: ssh
All the articles with the tag "ssh".
-
選擇 SSH key 的加密演算法
Updated:比較 SSH key 的五種加密演算法(DSA、ECDSA、Ed25519、RSA、RSA1),涵蓋 OpenSSH 8.8 棄用 ssh-rsa、FIDO/U2F 硬體金鑰支援,以及後量子密碼學的最新發展。
-
利用 ssh ProxyJump 直接連上內部 ssh server
用 SSH 的 -J 參數(ProxyJump)透過 bastion server 直接連線內部 server,不需手動設定 SSH tunnel。
-
使用 ssh-copy-id 將 ssh public key 存到遠端 ssh server 上
ssh-copy-id 複製公鑰到遠端 server 的完整用法:指定非預設演算法(ed25519)的 key 與非 22 的 port。
-
列出 GitHub/GitLab 上某位使用者的 SSH Public Key
SSH public key 本來就是設計給別人看的。透過 GitHub/GitLab 的公開端點,一行 curl 就能拿到同事的 public key,省去「欸你傳一下你的 key」的來回。
-
透過 oh-my-zsh 使用 ssh-agent
SSH key 有 passphrase 時每次 git 操作都要輸入很麻煩。用 Oh My Zsh 的 ssh-agent plugin 讓 agent 幫你記住。