後來發現只要把key 加入到ssh-agent 即可解決這個問題
$ ssh-add ~/.ssh/id_rsa
Identity added: /Users/User/.ssh/id_rsa (/Users/User/.ssh/id_rsa)
@ mbp in ~/.ssh [10:47:18]
$ ssh-agent -s
SSH_AUTH_SOCK=/var/folders/v5/_wxtsm_x74jg_nxv85hxy4jm0000gn/T//ssh-X4OEgMhibpCi/agent.6591; export SSH_AUTH_SOCK;
SSH_AGENT_PID=6592; export SSH_AGENT_PID;
echo Agent pid 6592;
沒有留言:
張貼留言