Thursday, 19 September 2013

Bash Script won't generate ssh key correctly

Bash Script won't generate ssh key correctly

I am writing a script that others can use to set up git on a Linux system
and I am trying to generate an ssh key, have them upload it to git, and
then check to see if the key works. I am just beginning this script so it
is still a little messy, but how can I get this part to work?
echo "what is your github email address"
read email
ssh-keygen -C $email
echo "your code is:"
cat ~/.ssh/id_rsa.pub
echo "Press enter when code is pasted to github"
read -s continue
ssh -T git@github.com

No comments:

Post a Comment