當key值有更動可能會遇到:
Agent admitted failure to sign using the key.
Permission denied (publickey).
解決方法:
# start the ssh-agent in the background eval "$(ssh-agent -s)" Agent pid xxxx ssh-add ~/.ssh/my_other_key
會出現類似訊息:
Identity added: ~/.ssh/my-ssh-key (~/.ssh/my-ssh-key)
再次嘗試登入server即可
沒有留言:
張貼留言