vagrant ssh agent forwarding only works for inline commands?

孤街醉人 提交于 2020-01-06 04:27:56

问题


I've added agent forwarding to my vagrant file, and now when I run vagrant ssh -c 'ssh-add -l' I see a list of ssh keys, which is correct. However, when I run vagrant ssh to connect and then run ssh-add -l, I don't see any keys! It looks like the forwarding only works for commands included as part of the initial call, otherwise it doesn't forward them.

What is going on here? How do I get it to forward the keys consistently, for all ssh connections to vagrant?

来源:https://stackoverflow.com/questions/33611015/vagrant-ssh-agent-forwarding-only-works-for-inline-commands

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!