SSH 實用指令
SSH Agent Forwarding
讓 A, B 兩台遠端主機互相傳送檔案
將兩台主機的私鑰都加入本機 SSH agent:
SSH 進入第一台 EC2 instance with agent forwarding:
From the first instance, attempt to SCP the file using agent forwarding to authenticate on the second instance:
SSH Tunnel
連線遠端 RDS (local port forwarding)
讓本地端可以透過 EC2 連線到 AWS RDS (EC2 要先與 RDS 設定好 security group 可互相連線)
將 SSH key 加入 SSH Agent
檢查目前讀取在 SSH Agent 的 keys
移除所有 SSH Agent keys
delete all the private keys stored in the SSH agent
設置 git push 嘗試多個 ssh key
開啟:vim ~/.ssh/config
Last updated