Skip to content

Instantly share code, notes, and snippets.

@kmassada
kmassada / ssh-key-setup.sh
Last active February 13, 2023 10:53
Quick setup for ssh, and ssh config file
# set the variables
SSH_HOST="gitlab.com"
SSH_USER=`whoami`
SSH_PORT=22
# create folder with the correct permissions
mkdir -p ~/.ssh/;
chmod 700 ~/.ssh/;
# generate key with u2f/fido