SSH 實用指令
SSH Agent Forwarding
ssh-add ~/downloads/geth-node-1.pem ssh-add ~/downloads/geth-node-2.pemssh -A -i "~/downloads/geth-node-1.pem" ubuntu@ec2-....ap-southeast-1.compute.amazonaws.comscp ~/target/file ubuntu@ec2-....ap-southeast-1.compute:/path/to/destination/
SSH Tunnel
連線遠端 RDS (local port forwarding)
ssh -i "~/ec2-ssh-key.pem" -N -L localhost:5432:RDS..southeast-1.rds.amazonaws.com:5432 ubuntu@ec2ip.ap-southeast-1.compute.amazonaws.com將 SSH key 加入 SSH Agent
檢查目前讀取在 SSH Agent 的 keys
移除所有 SSH Agent keys
設置 git push 嘗試多個 ssh key
Last updated