Skip to content

Commit

Permalink
After seeing it on GitHub I just couldn't stand seeing the private SS…
Browse files Browse the repository at this point in the history
…H key checked in, even temporarily, so I'm removing it. For now we'll have to remember to generate this before running everything, and there's an error message if we forget (on the host VM at least).
  • Loading branch information
Tim Simpson authored and rnirmal committed Jun 30, 2011
1 parent dda461b commit 6937676
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ contrib/tty.tgz
*.sqlite
vagrantup.*
.apitoken
integration/vagrant/common/ssh/id_rsa*
10 changes: 10 additions & 0 deletions integration/vagrant/common/ssh/add_key_to_host.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This is meant to be called from the volume box.
if [ ! -f /vagrant-common/ssh/id_rsa ] || [ ! -f /vagrant-common/ssh/id_rsa.pub ]
then
echo 'Missing ssh key. Use ssh-keygen to create key at /vagrant-common/ssh/ (leave options such as passphrase empty).'
exit 1
fi
cp /vagrant-common/ssh/id_rsa.pub /home/vagrant/.ssh/id_rsa.pub
cp /vagrant-common/ssh/id_rsa /home/vagrant/.ssh/id_rsa
sudo cp /vagrant-common/ssh/id_rsa.pub /root/.ssh/id_rsa.pub
sudo cp /vagrant-common/ssh/id_rsa.pub /root/.ssh/id_rsa
27 changes: 0 additions & 27 deletions integration/vagrant/common/ssh/id_rsa

This file was deleted.

1 change: 0 additions & 1 deletion integration/vagrant/common/ssh/id_rsa.pub

This file was deleted.

0 comments on commit 6937676

Please sign in to comment.