Authentication
on collaboration hubs

Authentication and access

    There are three things you typically need to set up when using a repository hosting service:
  • Have an account on that service
  • Create a personal tokens for authentication
  • Set up SSH keys to use the SSH protocol for repository access

Authentication and access

  • Personal tokens for authentication

  • Whenever DataLad performs actions on a collaboration hub on your behalf (such as creating a new repository), you need to supply a token that authenticates you.

Authentication and access

  • Personal tokens for authentication

  • The link takes in the prompt typically takes you to the right place, e.g., on GitHub or Forgejo:

Authentication and access

  • Personal tokens for authentication

  • Tokens needs appropriate permissions to create or modify repositories. The interface varies depending on service.

Authentication and access

  • Personal tokens for authentication

  • Once generated, it is only shown once, so save it to a secure place,
    e.g., a password manager.

    To use it, copy it ...

Authentication and access

  • Personal tokens for authentication

  • ... and supply it to the command line:

Authentication and access

  • Set up SSH keys to use the SSH protocol for repository access

  • Different protocols exist to synchronize changes between dataset siblings (e.g., pushing local changes upstream or pulling/updating from upstream). The most important ones are "HTTPS" and "SSH"
  • If you want to use SSH (which can be more convenient), you need an account and an SSH key pair. This is a set of two files with character gibberish. You create them from the command line with an OS-specific command, e.g.
    ssh-keygen -t ed25519 -C "your_email@example.com"
    (see here for instructions for each OS)

Authentication and access

  • Set up SSH keys to use the SSH protocol for repository access

  • One file is secret, one is public (ends with .pub).
  • Add the contents of the public file to your account:

Authentication and access

  • Set up SSH keys to use the SSH protocol for repository access

  • One file is secret, one is public (ends with .pub).
  • Add the contents of the public file to your account: