Skip to content

Instantly share code, notes, and snippets.

@kmassada
kmassada / ssh-key-setup.sh
Last active March 3, 2025 15:39
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/;
touch ~/.ssh/authorized_keys