How to ssh to vagrant without actually running “vagrant ssh”?

后端 未结 16 1572
清酒与你
清酒与你 2020-11-29 15:07

I would like to reproduce the way Vagrant logs in to my VM within a shell script using an ssh command, so I create an alias to my Vagrant instance.

What

16条回答
  •  孤独总比滥情好
    2020-11-29 15:22

    My Env. is Win7 + Centos. The answer with most agreement doesn't work for me. After failing after trying ssh -p [port] [usrname]@127.0.01 , I just use XShell to add a new session with the vagrant port and user name.

    It works.

    Maybe Xshell is a candinate.

提交回复
热议问题