default.xml remote tag using ssh for fetch attribute

101 views
Skip to first unread message

Mike

unread,
Feb 12, 2009, 4:48:17 PM2/12/09
to Repo and Gerrit Discussion
Hello again,

I'm setting up a manifest default.xml file, but I didn't have plans to
use the git:// protocol for syncing since it doesn't support
authentication (....at least I think it doesn't...). Since ssh://
URLs depend include a username, is it possible to use an ssh:// URL
for the remote tag of the default.xml file? Or am I required to
provide read access to all using git://?

Thanks,
Mike

Shawn Pearce

unread,
Feb 12, 2009, 4:51:36 PM2/12/09
to repo-d...@googlegroups.com
On Thu, Feb 12, 2009 at 13:48, Mike <msw...@gmail.com> wrote:

I'm setting up a manifest default.xml file, but I didn't have plans to
use the git:// protocol for syncing since it doesn't support
authentication (....at least I think it doesn't...).

Right, git:// really doesn't have any authentication support.  Its designed for public mirrors of open source projects who want fast anonymous downloads.
 
 Since ssh://
URLs depend include a username, is it possible to use an ssh:// URL
for the remote tag of the default.xml file?  Or am I required to
provide read access to all using git://?

Just use "ssh://hostname/path" and ask users to put a host block in their ~/.ssh/config to set the right hostname, e.g.:

  Host hostname
    User reallyme
 

Mike

unread,
Feb 12, 2009, 4:53:16 PM2/12/09
to Repo and Gerrit Discussion
Awesome will do.

On Feb 12, 1:51 pm, Shawn Pearce <s...@google.com> wrote:
Reply all
Reply to author
Forward
0 new messages