From: Akshay Mankar Date: Sat, 6 Jul 2013 14:53:07 +0000 (+0530) Subject: Fixed problem with SSH X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=commitdiff_plain;h=144c8667b933b1f6d8146bfa5fa2fca6bbdc0d75 Fixed problem with SSH --- diff --git a/example/Vagrantfile b/example/Vagrantfile index 5fb1f37..74c2de0 100644 --- a/example/Vagrantfile +++ b/example/Vagrantfile @@ -6,6 +6,7 @@ Vagrant.configure("2") do |config| config.vm.provision :copy_my_conf do |copy_conf| copy_conf.vim copy_conf.git + copy_conf.ssh copy_conf.user_home = "/home/vagrant" end end diff --git a/lib/copy_my_conf/ssh.rb b/lib/copy_my_conf/ssh.rb index c45aba5..38e7643 100644 --- a/lib/copy_my_conf/ssh.rb +++ b/lib/copy_my_conf/ssh.rb @@ -1,7 +1,7 @@ module CopyMyConf class Ssh def prepare vm, tmp_root - vm.synced_folder("#{tmp_root}/ssh", "~/.ssh", :id => "ssh") + vm.synced_folder("#{ENV['HOME']}/.ssh", "#{tmp_root}/ssh",:id => "ssh") end def provision channel, user_home, tmp_root