Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run install_addons.sh when deployed on FAT32 formated external HDD #4

Open
bmml1 opened this issue Jul 27, 2019 · 1 comment
Open

Comments

@bmml1
Copy link

bmml1 commented Jul 27, 2019

Hello,

the installations works like a charm, but since FAT32 does not support file permission there seems to be a problem with accessing the private key when connecting. Copying the private key somewhere to your homefolder and then specifying the path works.

F:\Vagrant>vagrant ssh -c "sudo /vagrant/scripts/install_addons.sh" vagrant@127.0.0.1: Permission denied (publickey).

ssh -i c:\users\<user>\.ssh\private_key_vagrant vagrant@127.0.0.1 -p 2222

@sbcgua
Copy link
Owner

sbcgua commented Jul 29, 2019

hmm, this is not an issue of vagrant or config. this is default behavior of ssh. Not sure if there is an easy solution. Made a short search, potentially these 2 articles are of interest:

So

  • e.g. there can be a parameter e.g. --ssh-key
  • if it is specified, then Vagrant can be blocked from creating a random key
  if argSshKey
    config.ssh.private_key_path = [argSshKey, "~/.vagrant.d/insecure_private_key"]
    config.ssh.insert_key = false
  end
  • but then there is a problem to add authorized key into the machine. either it needs additional param to specify the public key too, or it should generate it from private.Heap of params is ugly. Whereas the private one is not accessible from VM. And the host might not have ssh-gen ... no elegant solution at the first glance :(

What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants