当我尝试成为 root 时出现以下错误
-bash-4.1$ sudo su -
Could not open a connection to your authentication agent.
* Error: Problem adding; giving up
我已经尝试过eval "$(ssh-agent)"
并且我得到了Agent pid 14714
答案1
ssh-agent -k
然后再次输入密码并解决问题
当我尝试成为 root 时出现以下错误
-bash-4.1$ sudo su -
Could not open a connection to your authentication agent.
* Error: Problem adding; giving up
我已经尝试过eval "$(ssh-agent)"
并且我得到了Agent pid 14714
ssh-agent -k
然后再次输入密码并解决问题