Skip to content

Instantly share code, notes, and snippets.

View thiennn-neji's full-sized avatar

Thien Nguyen-Ngoc thiennn-neji

  • Vietnam
View GitHub Profile
@alejandro-martin
alejandro-martin / multiple-ssh-keys-git.adoc
Last active May 12, 2024 09:20
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@mattward
mattward / config
Last active November 16, 2022 10:01
Template for SSH config: ~/.ssh/config
################################################################################
# File: SSH client configuration
# Author: Matt Ward
################################################################################
Host wopr
HostName wopr.example.com
IdentityFile ~/.ssh/id_wopr
User mward
@codecats
codecats / gist:a67ed3997e1e1d898ade
Last active November 16, 2022 10:01
SSH config for ubuntu (File path: "/etc/ssh/ssh_config")
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.