![成为 root centos 时出错](https://linux22.com/image/71740/%E6%88%90%E4%B8%BA%20root%20centos%20%E6%97%B6%E5%87%BA%E9%94%99.png)
当我尝试成为 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
然后再次输入密码并解决问题