Hi, I am currently trying to demonstrate SELinux on a centOS/7 virtual 
machine and in order for policy changes to take effect I have to log on as 
the user itself rather than su'ing over to it. This has created a difficult 
issue with me and accessing the box via any other user than 'vagrant'. 

I have tried the following methods:

-> vagrant ssh -- -l <user> 
-> ssh -i <route/to/private_key> -p 2222 <user>@localhost 
-> configuring VagrantFile to include config.ssh.{username, password} 
-> actually placing the public key on the box via the vagrant user into 
known_hosts and/or authorised_keys. 

All methods work if the vagrant user is specified. 

All methods tried have returned the following error - "Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic.)" if a user other than 'vagrant' 
is specified.

I have made a paste of my error log - http://pastebin.com/CEWkGgAF

Can anybody spot the problem I am facing and any possible solutions I can 
do to rectify it?

Many thanks,

William


-- 
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 [email protected].
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.

Reply via email to