- Python 85.2%
- Shell 14.5%
- PowerShell 0.3%
| scripts | ||
| LFS_gitattributes.txt | ||
| README.md | ||
Home System: debian
IPv4: Local 192.168.0.50 debian TS 100.118.173.85 debian WAN 71.194.129.155:2222 debian-ssh, forwarded to Debian SSH
TS URL: debian.ojos-stargazer.ts.net
Services: Forgejo Web UI: http://debian.ojos-stargazer.ts.net:3000 XRDP: 3389 System SSH: 22 WAN SSH fallback: 71.194.129.155:2222 -> debian:22
Jellyfin : http://71.194.129.155:8096/ or http://debian.ojos-stargazer.ts.net:8096/ on tailscale
Important: Forgejo web port 3000 is not the Git SSH port. Do not put :3000 in an SSH-style Git remote.
#-----------------------------------------------------
Setting Up a TS / Git Connection in Forgejo
WINDOWS
(1) notepad $env:USERPROFILE.ssh\config
"Host forgejo
HostName debian.ojos-stargazer.ts.net
User git
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
"
(2) Create an ssh key
(i) ssh-keygen -t ed25519 -f "$env:USERPROFILE\.ssh\id_ed25519" -C "user-windows"
(ii) Get-Content "$env:USERPROFILE\.ssh\id_ed25519.pub"
(iii) Copy the above value into forgejo > Settings > PGP & SSH Keys
(3) Test connection with ssh forgejo -> Hello message should come back.
(4) Set the origin git remote set-url origin forgejo:{user}/{repo.git}
LINUX
(1) Create an ssh key
mkdir -p ~/.ssh chmod 700 ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -C "ryan-rdp@debian"
(2) cat ~/.ssh/id_ed25519.pub Copy into Forgejo > Settings > PGP and SSH Keys
(3) nano ~/.ssh/config
Host forgejo
HostName debian.ojos-stargazer.ts.net User git Port 22 IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes
(4) Fix permissions: chmod 600 ~/.ssh/config chmod 600 ~/.ssh/id_ed25519 chmod 644 ~/.ssh/id_ed25519.pub
(5) Test ssh -T forgejo
(5) git remote set-url origin forgejo:{user}/{repo.git}