package packages a running vagrant environment into a box
Then you should be able to overwrite the user with
config.ssh.username in the Vagrantfile
B.
Set a private or public ip, and ssh to that ip using the user/pass you want to test.
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/004396a2-5589-42eb-8f62-5c0027ef8ba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/004396a2-5589-42eb-8f62-5c0027ef8ba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
1. vagrant ssh on to the user vagrant
2. create/su user you wish to ssh into
3. create .ssh with 700 permission and cd into .ssh
4. ssh-keygen, and create you id_rsa private and public key
5. cat your public key into your authorized_keys and chmod it to 600 permission
6. ssh into the user from the users own .ssh directory (ssh -i id_rsa <user@>localhost/private_network/public_network) so it is added to the known_hosts
7. copy the id_rsa and put it into a .pem file on your localhost side (outside of the box) with chmod 600.
You should now be able to ssh onto a specified user other than vagrant.