Cloning Github and Gitlab Repository
Port 22 is disabled on the DASH cluster scheduler node (SSH goes over port 22). Downloading repository is only viable over HTTPs:
Download Gitlab Repos:
Refer to Gitlab's documentation on how to generate a personal access token. When selecting scopes for the token, read_repository
and write_repository
scopes are sufficient in most scenarios.
Once you obtain your personal access token, you can download the repository in your scheduler terminal:
git clone https://<token-name>:<token>@<repository-url> ... # example: git clone https://hpctoken:long-token-string@gitlab.oit.duke.edu/myrepository
Download Github Repos:
Refer to Github's documentation on how to generate a personal access token and download a repository.
# example: git clone Github repository via https dash1-scheduler:~# git clone https://github.com/wodanaz/Assembling_viruses.git Cloning into 'Assembling_viruses'... Username for 'https://github.com': jmhundev Password for 'https://jmhundev@github.com': remote: Enumerating objects: 852, done. remote: Counting objects: 100% (274/274), done. remote: Compressing objects: 100% (68/68), done. remote: Total 852 (delta 247), reused 206 (delta 206), pack-reused 578 Receiving objects: 100% (852/852), 210.80 KiB | 14.05 MiB/s, done. Resolving deltas: 100% (525/525), done.