Skip to content

Instantly share code, notes, and snippets.

View maivdigital's full-sized avatar

MaivDigital maivdigital

View GitHub Profile
@maivdigital
maivdigital / generate-ssh-key.sh
Created January 5, 2021 03:44
Generate SSH key bash
#!/bin/bash
echo -e "====== Starting SSH Agent =======\n\n";
eval "$(ssh-agent)";
echo -e "====== Continue with the default, just hit enter =========\n\n";
ssh-keygen -t rsa -b 4096
echo -e "======= Generating SSH Key is done and saved at ~/.ssh/id_rsa ==========\n\n";
cat ~/.ssh/id_rsa.pub
echo -e "\n";
echo -e "====== Copy the content of public key and paste into your Repo ============\n\n"