Skip to content

About

A cross-platform GUI tool built with **Go** and **Fyne** that allows you to manage multiple GitHub SSH keys effortlessly. Generate keys, view public keys, upload to GitHub, test SSH connections, and manage your `~/.ssh/config` all from one place.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

48 Commits

Folders and files

Repository files navigation

GitHub SSH Manager

Go License Fyne Platform

A cross-platform GUI tool built with Go and Fyne that allows you to manage multiple GitHub SSH keys effortlessly. Generate keys, view public keys, upload to GitHub, test SSH connections, manage your ~/.ssh/config, and track all operations with built-in activity loggingβ€”all from one place.


Download GitHub SSH Manager

πŸ“Œ Table of Contents


✨ Features

  • Generate SSH Keys – Create ed25519 SSH keys for multiple GitHub accounts
  • Show Public Key – View and copy your public key to clipboard
  • Upload to GitHub – Upload your public key via a Personal Access Token (PAT)
  • Test SSH Connection – Verify SSH connection to GitHub for each account
  • View SSH Config – Inspect your ~/.ssh/config in a polished modal
  • Activity Logger – Track all operations with timestamps and log levels
  • Export Logs – Save activity logs to file for debugging or record-keeping
  • Multi-account Support – Manage multiple GitHub accounts using custom account names
  • Cross-platform – Works on Linux, macOS, and Windows
  • Built-in Help – Step-by-step instructions accessible via the Help button

πŸ–ΌοΈ Screenshots

1. Main Window

Main Window

Enter your account name, host alias, and PAT, then generate or manage SSH keys easily.

2. Generate Key (Local with Config)

Generate Key

Generate SSH KEY with automatic config file updates.

3. Public Key Viewer

Public Key Viewer

View your public key and copy it to clipboard.

4. Upload to GitHub with Personal Access Token (PAT Classic)

Upload Key to GitHub

Upload to GitHub with Personal Access Token (PAT Classic).

5. SSH Connection Test (Success)

SSH Connection test

SSH Connection test with successful authentication.

6. View SSH Config / Copy

View SSH Config/Copy

View and copy your SSH configuration.

7. Activity Logger & Export

Activity Logger

Track all operations with detailed logging and export capability.

8. Show Instructions / Help

Show Instructions/Help

Comprehensive user instructions with clickable links.


πŸ“¦ Installation

Linux (Debian/Ubuntu)

Download the .deb package from the releases page.

Install

# Download the latest release (replace version number)
wget https://github.com/Sarwarhridoy4/github-ssh-manager/releases/download/v2.5/github-ssh-manager_2.5_amd64.deb

# Install the package
sudo dpkg -i github-ssh-manager_2.5_amd64.deb

# Fix dependencies if needed
sudo apt-get install -f

Package Name: github-ssh-manager

After installation, you can launch the app from your application menu or by running:

github-ssh-manager

Verify Installation

dpkg -l | grep github-ssh-manager

Linux (AppImage)

AppImage is a universal Linux package that runs on most distributions without installation.

Download and Run

# Download the latest release
wget https://github.com/Sarwarhridoy4/github-ssh-manager/releases/download/v2.5/github-ssh-manager-2.5-x86_64.AppImage

# Make it executable
chmod +x github-ssh-manager-2.5-x86_64.AppImage

# Run the application
./github-ssh-manager-2.5-x86_64.AppImage

Extract Without FUSE

If you encounter FUSE errors, you can extract and run without FUSE:

# Extract the AppImage
./github-ssh-manager-2.5-x86_64.AppImage --appimage-extract

# Run the extracted binary
./squashfs-root/AppRun

Note: AppImages require FUSE to run normally. Install FUSE if needed:

sudo apt-get install fuse libfuse2

For more information, see FUSE Documentation.

macOS

Using the App Bundle

# Download the .app bundle from releases
wget https://github.com/Sarwarhridoy4/github-ssh-manager/releases/download/v2.5/github-ssh-manager.app.zip

# Extract
unzip github-ssh-manager.app.zip

# Move to Applications folder
mv github-ssh-manager.app /Applications/

# Run
open /Applications/github-ssh-manager.app

Note: On first launch, you may need to allow the app in System Preferences > Security & Privacy.

Windows

Using the Executable

# Download the .exe from releases
# Double-click to run or use command line:
github-ssh-manager.exe

Note: Windows Defender may show a warning on first run. Click "More info" β†’ "Run anyway" if you trust the source.


πŸƒβ€β™‚οΈ Running from Source

Prerequisites

  • Go >= 1.25
  • Git
  • SSH tools (ssh-keygen, ssh)
  • Fyne dependencies (handled automatically via Go modules)

Run from Source

git clone https://github.com/Sarwarhridoy4/github-ssh-manager.git
cd github-ssh-manager
go mod tidy
go run .

The GUI window will open, allowing you to manage your GitHub SSH keys.


πŸ“ Project Structure

github-ssh-manager/
β”œβ”€β”€ main.go                     # App bootstrap and startup wiring
β”œβ”€β”€ internal/
β”‚   β”œβ”€β”€ ui/                     # Fyne UI layout, widgets, dialogs, event handlers
β”‚   β”œβ”€β”€ ssh/                    # SSH key generation, config, known_hosts, testing
β”‚   β”œβ”€β”€ github/                 # GitHub REST API client for SSH key upload
β”‚   β”œβ”€β”€ validation/             # Input validation and security checks
β”‚   β”œβ”€β”€ logging/                # In-memory activity logger
β”‚   └── theme/                  # Theme switching (System/Light/Dark)
β”œβ”€β”€ assets/
β”‚   └── icon.png
β”œβ”€β”€ screenshots/
β”œβ”€β”€ build.sh
β”œβ”€β”€ build.ps1
β”œβ”€β”€ go.mod
└── README.md

πŸ”„ Working Flow

flowchart TD
    A[Launch App] --> B[Resolve ~/.ssh Path Cross-Platform]
    B --> C[Create/Verify .ssh Directory]
    C --> D[User Inputs Account Name + Host Alias + PAT]

    D --> E{Action Selected}

    E -->|Generate Key| F[Validate Account Name + Host Alias]
    F --> G[Run ssh-keygen for id_ed25519_account-name]
    G --> H[Ensure github.com in known_hosts]
    H --> I[Append/Ensure Host Block in ~/.ssh/config]
    I --> J[Log Success + Update Status]

    E -->|Show Public Key| K[Read id_ed25519_account-name.pub]
    K --> L[Open Public Key Modal]

    E -->|Upload to GitHub| M[Validate Inputs + Token]
    M --> N[Read Public Key]
    N --> O[POST /user/keys to GitHub API]
    O --> P{Upload Result}
    P -->|Success| Q[Show Success Modal + Clear Token Field]
    P -->|Failure| R[Show Error Modal + Log Error]

    E -->|Test SSH| S[Run ssh -T git@host-alias]
    S --> T{Authenticated?}
    T -->|Yes| U[Show Success Modal]
    T -->|No| V[Show Error Modal]

    E -->|View Config| W[Open SSH Config Modal]
    E -->|Instructions| X[Open Help Modal]
    E -->|Theme| Y[Apply System or Forced Light/Dark Theme]
Loading

πŸ’» Building from Source

Simple Build

Linux

GOOS=linux GOARCH=amd64 go build -o github-ssh-manager

macOS

GOOS=darwin GOARCH=amd64 go build -o github-ssh-manager

Windows

GOOS=windows GOARCH=amd64 go build -o github-ssh-manager.exe

Production Build with Packaging

For production-ready packages with icons, metadata, and installer formats:

Install Build Tools

# Install Fyne CLI
go install fyne.io/tools/cmd/fyne@latest

# For Linux packages, also install:
sudo apt-get install dpkg-dev imagemagick wget fuse libfuse2

Automated Build Script (Linux)

We provide a comprehensive build script that creates .deb, .AppImage, and .tar.gz packages in one run:

# Make the script executable
chmod +x build.sh

# Run the build
./build.sh

The script follows the official Fyne packaging approach and will auto-install missing dependencies using your system package manager.

Outputs in dist/:

  • github-ssh-manager_<version>_<arch>.deb β€” Debian package
  • github-ssh-manager-<version>-<arch>.AppImage β€” Universal Linux package
  • github-ssh-manager-<version>-<arch>.tar.gz β€” Fyne-standard tarball
  • SHA256SUMS / MD5SUMS β€” Checksums for verification

Notes:

  • If appimagetool is missing, it is downloaded automatically to build/tools/.
  • FUSE is required for running AppImage; for building, appimagetool can run with --appimage-extract fallback.

Manual Packaging with Fyne

Linux
fyne package --os linux \
    --icon assets/icon.png \
    --name "GitHub SSH Manager" \
    --app-id "com.sarwarhridoy4.github-ssh-manager" \
    --app-version 2.5 \
    --release
macOS
fyne package --os darwin \
    --icon assets/icon.png \
    --name "GitHub SSH Manager" \
    --app-id "com.sarwarhridoy4.github-ssh-manager" \
    --app-version 2.5 \
    --release
Windows
fyne package --os windows \
    --icon assets/icon.png \
    --name "GitHub SSH Manager" \
    --app-id "com.sarwarhridoy4.github-ssh-manager" \
    --app-version 2.5 \
    --release

Installing Locally (Development)

To install your development build system-wide:

fyne install --icon assets/icon.png

πŸ”§ Usage Instructions

1. Generate a Personal Access Token (PAT)

  1. Go to GitHub Token Settings
  2. Click "Generate new token (classic)"
  3. Select the following scopes:
    • βœ… admin:public_key (read and write)
    • βœ… repo (optional, for private repos)
  4. Generate and copy the token

2. Generate SSH Key

  1. Enter an account name (e.g., personal, work, company)
  2. Enter a host alias (e.g., github-personal, github-work)
  3. Click "Generate SSH Key"
  4. The key will be created at ~/.ssh/id_ed25519_<account-name>

3. Show Public Key

  1. Enter the account name you used
  2. Click "Show Public Key"
  3. Copy the key to clipboard using the copy button

4. Upload Key to GitHub

  1. Paste your Personal Access Token (PAT)
  2. Click "Upload to GitHub"
  3. Your public key will be uploaded with the title: <account-name>-<host-alias>

5. Test SSH Connection

  1. Enter your host alias
  2. Click "Test SSH Connection"
  3. A successful connection will show: "Hi <username>! You've successfully authenticated..."

6. View SSH Config

  1. Click "View SSH Config"
  2. Review your ~/.ssh/config file
  3. Copy the entire config if needed

7. Activity Logs

  • All operations are logged in the Activity Log section
  • Logs include timestamps and severity levels (INFO, SUCCESS, ERROR, WARNING)
  • Click "Save Log" to export logs to a file
  • Click "Clear Log" to clear the current session logs

8. Help & Instructions

  • Click "Help & Instructions" for detailed step-by-step guidance
  • Includes a direct link to GitHub token settings

πŸ—‘οΈ Uninstallation

Linux (Debian Package)

To uninstall the Debian package:

sudo dpkg -r github-ssh-manager

Or to remove completely including configuration files:

sudo dpkg --purge github-ssh-manager

Verify removal:

dpkg -l | grep github-ssh-manager

Package Name: github-ssh-manager

Linux (AppImage)

Simply delete the AppImage file:

rm github-ssh-manager-2.5-x86_64.AppImage

If you extracted it:

rm -rf squashfs-root/

macOS

# Remove from Applications
rm -rf /Applications/github-ssh-manager.app

# Remove preferences (optional)
rm -rf ~/Library/Preferences/com.sarwarhridoy4.githubsshmanager.plist

Windows

  1. Delete the executable file github-ssh-manager.exe
  2. Remove any shortcuts you created

Cleaning SSH Keys (All Platforms)

If you want to remove SSH keys created by the app:

# List keys created by the app
ls ~/.ssh/id_ed25519_*

# Remove specific key (replace <account-name> with your account name)
rm ~/.ssh/id_ed25519_<account-name>
rm ~/.ssh/id_ed25519_<account-name>.pub

# Remove from GitHub (via web interface or API)

πŸ› οΈ Dependencies

Runtime Dependencies

  • System SSH tools: ssh-keygen, ssh, ssh-keyscan
  • FUSE (Linux AppImage only): For mounting AppImage files

Build Dependencies

Go Module Dependencies

All Go dependencies are managed via go.mod and installed automatically:

go mod tidy
go mod download

Key modules:

  • fyne.io/fyne/v2 - GUI framework
  • Standard library packages for crypto, networking, and file operations

πŸ” Troubleshooting

Linux: "dlopen(): error loading libfuse.so.2"

This error occurs when trying to run an AppImage without FUSE installed.

Solution 1 - Install FUSE:

sudo apt-get update
sudo apt-get install fuse libfuse2

Solution 2 - Extract and Run:

./github-ssh-manager-2.5-x86_64.AppImage --appimage-extract
./squashfs-root/AppRun

For more information: FUSE Documentation

Linux: Permission Denied when Installing .deb

Make sure you use sudo:

sudo dpkg -i github-ssh-manager_2.5_amd64.deb

Linux: Dependency Issues After Installing .deb

Fix missing dependencies:

sudo apt-get install -f

macOS: "App is damaged and can't be opened"

This is a Gatekeeper security feature. To allow the app:

# Remove quarantine attribute
xattr -d com.apple.quarantine /Applications/github-ssh-manager.app

# Or allow in System Preferences
# System Preferences > Security & Privacy > General > Open Anyway

Windows: "Windows protected your PC"

This is Windows Defender SmartScreen. If you trust the source:

  1. Click "More info"
  2. Click "Run anyway"

SSH Connection Test Fails

  1. Verify the host alias matches what's in your ~/.ssh/config
  2. Ensure the public key is uploaded to GitHub
  3. Check GitHub Settings > SSH and GPG keys
  4. Test manually: ssh -T git@<your-host-alias>

"Cannot read public key" Error

  1. Verify you've generated the key first
  2. Check the account name matches exactly (case-sensitive)
  3. Verify file exists: ls ~/.ssh/id_ed25519_<account-name>.pub

Build Fails with "command not found: fyne"

Install Fyne CLI tools:

go install fyne.io/tools/cmd/fyne@latest
export PATH=$PATH:$(go env GOPATH)/bin

πŸ“ Notes

  • SSH keys are saved under ~/.ssh/id_ed25519_<account-name>
  • Public keys are named ~/.ssh/id_ed25519_<account-name>.pub
  • Host entries are automatically added to ~/.ssh/config
  • GitHub public key titles are formatted as: <account-name>-<host-alias>
  • Activity logs are stored in memory and can be exported
  • The app requires network access for GitHub API operations
  • Minimum screen resolution: 800x600 (recommended: 1024x768+)

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ™ Acknowledgments

  • Fyne - The GUI toolkit that makes this possible
  • Go - The programming language
  • GitHub API for SSH key management
  • The open-source community

πŸ“ž Support


Made with ❀️ by Sarwar Hossain

About

A cross-platform GUI tool built with **Go** and **Fyne** that allows you to manage multiple GitHub SSH keys effortlessly. Generate keys, view public keys, upload to GitHub, test SSH connections, and manage your `~/.ssh/config` all from one place.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages