How to setup Vagrant ssh agent forwarding?

泪湿孤枕 提交于 2019-12-06 13:29:31

I could not make the ssh forwarding working. My solution is to simply generate new ssh key on the VM:

  1. Log to the VM: vagrant ssh
  2. Generate a new ssh key on the VM: ssh-keygen
  3. Upload the new public ssh to 192.168.0.1: I do it manually. It could be automatize.
  4. ssh -A sk@192.168.168.0.1 works
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!