Skip to content

Add Forgejo option to create_ssh_key.sh - #16

Merged
ulises-c merged 1 commit into
mainfrom
claude/forgejo-ssh-keygen
May 20, 2026
Merged

Add Forgejo option to create_ssh_key.sh#16
ulises-c merged 1 commit into
mainfrom
claude/forgejo-ssh-keygen

Conversation

@ulises-c

Copy link
Copy Markdown
Owner

Summary

  • Adds option 5) Forgejo (self-hosted) to the host selection menu in create_ssh_key.sh
  • Writes a forgejo SSH alias with HostName, Port 2222, and User git so cloning works as git clone forgejo:<user>/<repo>.git
  • Test connection uses ssh -T forgejo (alias resolves via config) instead of ssh -T git@<host>
  • IS_FORGEJO and FORGEJO_HOSTNAME are env-var pre-fillable for scripted use

Test plan

  • Run bash SSH_and_GPG/create_ssh_key.sh, select option 5, enter Tailscale hostname
  • Verify ~/.ssh/config gets a forgejo block with HostName, Port 2222, User git
  • Add the printed public key to Forgejo (Settings → SSH / GPG Keys)
  • Clone a repo: git clone forgejo:<user>/<repo>.git

🤖 Generated with Claude Code

Adds option 5 (Forgejo self-hosted) to the host selection menu.
Writes an SSH config alias with HostName, Port 2222, and User git
so cloning works as `git clone forgejo:<user>/<repo>.git`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ulises-c
ulises-c merged commit 10750b1 into main May 20, 2026
3 checks passed
@ulises-c
ulises-c deleted the claude/forgejo-ssh-keygen branch May 20, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant