access_sdf_gitea_using_ssh_keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
access_sdf_gitea_using_ssh_keys [2022/02/07 21:32] – clarified some of the language about the server setup. jquah | access_sdf_gitea_using_ssh_keys [2022/02/07 21:37] (current) – jquah | ||
---|---|---|---|
Line 1: | Line 1: | ||
Futurile spent some time investigating and eventually got to the bottom of it. | Futurile spent some time investigating and eventually got to the bottom of it. | ||
- | Useful information is that the gitea server (git.sdf.org) is hosted on ma.sdf.org. After your gitea account is created, it will reside on ma.sdf.org at / | + | Useful information is that the Gitea server (git.sdf.org) is hosted on ma.sdf.org. After your Gitea account is created, it will reside on ma.sdf.org at '' |
- Create Gitea account as instructed in [[hosted_git_repos_-_gitea_on_sdf|Hosted git repos]]. | - Create Gitea account as instructed in [[hosted_git_repos_-_gitea_on_sdf|Hosted git repos]]. | ||
Line 13: | Line 13: | ||
* The Gitea server is running on the system as the ' | * The Gitea server is running on the system as the ' | ||
* The Gitea server is running on port 2222, so our test of public key authentication will specify this port manually. (It is possible for the server to switch seamlessly to port 2222 whenever the ' | * The Gitea server is running on port 2222, so our test of public key authentication will specify this port manually. (It is possible for the server to switch seamlessly to port 2222 whenever the ' | ||
- | * At the command line, test that your newly-uploaded SSH key is recognized by Gitea. A dedicated stanza for git.sdf.org in $HOME/ | + | * At the command line, test that your newly-uploaded SSH key is recognized by Gitea. A dedicated stanza for git.sdf.org in $HOME/ |
- | < | + | $ ssh -vvv git@git.sdf.org -p 2222</ |
- | $ ssh -vvv git@git.sdf.org -p 2222</ | + | |
* You'll see a load of output, if it's successful you'll see:< | * You'll see a load of output, if it's successful you'll see:< | ||
Offering public key: < | Offering public key: < | ||
<more output> | <more output> | ||
debug1: Authentication succeeded (publickey). | debug1: Authentication succeeded (publickey). | ||
- | Authenticated to git.sdf.org ([205.166.94.33]: | + | Authenticated to git.sdf.org ([205.166.94.33]: |
- | | + | |
- Set up your repository one of two ways: | - Set up your repository one of two ways: | ||
- Use the repository via git | - Use the repository via git | ||
- | * The Gitea web page for any empty repository you create will show you the commands for accessing it via ssh. (Once content is uploaded, this information disappears from the landing page of the repository.) Because Gitea is actually running on port 2222, you have to add this to the command line provided.< | + | * The Gitea web page for any empty repository you create will show you the commands for accessing it via ssh. (Once content is uploaded, this information disappears from the landing page of the repository.) Because Gitea is actually running on port 2222, you have to add this to the command line provided.< |
- | | + | $ git pull git@git.sdf.org: |
- | $ git pull git@git.sdf.org: | + | |
- Import an existing repository | - Import an existing repository | ||
* I had an existing repository that I wanted to now upload into gitea. To do that we add a new remote.< | * I had an existing repository that I wanted to now upload into gitea. To do that we add a new remote.< | ||
Line 33: | Line 30: | ||
$ git push upstream master</ | $ git push upstream master</ | ||
* For my own reasons I've called the remote ' | * For my own reasons I've called the remote ' | ||
- | - Check output in gitea | + | - Check output in Gitea |
- | * You should see output on the command-line, | + | * You should see output on the command-line, |
access_sdf_gitea_using_ssh_keys.1644269551.txt.gz · Last modified: 2022/02/07 21:32 by jquah