Scripts for setting up passwordless SSH authentication to remote servers. Includes a dedicated script for GitHub SSH key setup and git configuration. Also provides utilities for managing SSH server settings on Ubuntu.
git clone https://github.com/fieryWaters/setupSSHKeysBashScript.git
cd setupSSHKeysBashScriptRuns on: macOS/Linux/WSL Target: Any SSH server
The streamlined script for setting up SSH key authentication. This script:
- Generates an SSH key pair locally (stored in ~/.ssh/)
- Transfers the public key to your remote server's ~/.ssh/authorized_keys
- Appends host configuration to your local ~/.ssh/config file
- Tests the connection to verify everything works
Usage:
./setup_ssh_keys_on_remote.shYou'll be prompted for:
- Key file name
- Remote server username
- Remote server IP address
After setup, you can connect using: ssh [keyname]
Runs on: macOS/Linux/WSL
Automates GitHub SSH key setup for developers:
- Generates a 4096-bit RSA key specifically for GitHub (uses
id_rsafilename) - Configures Git with your username and email
- Tests the GitHub SSH connection
Usage:
./setup_github_keys.shAll utilities in server-utils/ directory require sudo and are designed for Ubuntu/Debian systems:
enable_password_login.sh/disable_password_login.sh- Toggle password authenticationenable_ssh_server.sh/disable_ssh_server.sh- Manage SSH server service
enable_lid_close_sleep.sh/disable_lid_close_sleep.sh- Control laptop lid suspend behavior
Feel free to submit issues or pull requests for improvements.