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

Added support for downloading boxes via SCP #1041

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
9 participants
@vaimo-wilko
Copy link

vaimo-wilko commented Jul 25, 2012

Since we have certain sensitive box files that we do not want on the open internet, we needed a way to add user authentication/authorization to box downloads.

We already have a good SSH key authentication framework in our infrastructure, so by using SCP we avoid having to set up a parallel authentication system via HTTP(S). With SCP we effectively get authentication/authorization for free.

I am contributing this, as this could be nice to have as a standard feature in Vagrant, for others to use too.


There is one thing currently not as I would like it to be, due to a bug/misfeature in Net::SSH. Unlike the command line SSH client, Net::SSH does not fall back to the currently logged in user, if no user is specified (either to the Net::SSH.start function or in the ssh config files).

This means that SCP URIs must be given a user (e.g. scp://user@host/path/to/file), if no user is specified in the ssh config file for the specific host.

I will submit a fix for this bug/misfeature to the Net::SSH project.

@lmars

This comment has been minimized.

Copy link
Contributor

lmars commented Sep 27, 2012

+1 for this being merged

@frak

This comment has been minimized.

Copy link

frak commented Sep 27, 2012

Any news on this feature being merged? This would be really useful in my organisation too

@Whitespace

This comment has been minimized.

Copy link

Whitespace commented Oct 23, 2012

+1, this would be extremely useful on networks where the security is rigorously maintained by some other means.

@rb2k

This comment has been minimized.

Copy link

rb2k commented Nov 15, 2012

+1 from me too

@alexanderilyin

This comment has been minimized.

Copy link

alexanderilyin commented Nov 15, 2012

+1. It's nice to have.

@fgrehm

This comment has been minimized.

Copy link
Collaborator

fgrehm commented Jul 10, 2013

hey @mitchellh, is this currently supported now that we have curl around? shall we close this issue?

@mitchellh

This comment has been minimized.

Copy link
Member

mitchellh commented Jul 11, 2013

Yep, since vagrant box add and friends use cURL now, SCP is natively supported.

@gsaslis

This comment has been minimized.

Copy link

gsaslis commented Feb 26, 2015

in case someone else is also struggling, it took me a while to realize curl on OSX doesn't support scp out of the box (so, neither does vagrant). Check this URL for a way round this problem: http://chase-seibert.github.io/blog/2014/05/18/vagrant-authenticated-private-box-urls.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment