Allow ssh(scp) to another VM

12 views
Skip to first unread message

Richard Diamond

unread,
Jun 20, 2017, 12:45:46 PM6/20/17
to Vagrant

Vagrant version

Vagrant 1.9.5

Host operating system

Windows 7 Ultimate

Guest operating system

Debian 8


I have a machine that seek to connect by ssh to another machine.


I tried

Is there any way to allow ssh connection between vm?

Alvaro Miranda Aguilera

unread,
Jun 21, 2017, 2:41:44 AM6/21/17
to vagra...@googlegroups.com
Hello

sure, let me share some information.

If you want to use the vagrant private key, you need to tell vagrant to not replace it.

add

config.ssh.insert_key = false

vagrant destroy
vagrant up

and you should be able to ssh as vagrant user using the private key.

Alvaro.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/85aed9ad-356d-4321-b77b-66f58045aee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages