-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclone-openssyssetup-ssh.sh
executable file
·27 lines (24 loc) · 1.07 KB
/
clone-openssyssetup-ssh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
curl https://j71.nl/oss-ssh.sh | bash
## #!/bin/bash
## # Usage:
## # if you want to make direct changes ==> curl https://j71.nl/oss-ssh.sh | bash
## # if you want to make it read-only* ==> curl https://j71.nl/oss-https.sh | bash
## # or ==> curl https://j71.nl/oss | bash
## # (*) you can still make changes in a temporary branch, push using https, and use a access-token (purpose-pwd), or commit to new branch and create a pull-request
## #
## mkdir -pv $HOME/.ssh && chmod 0700 $HOME/.ssh
## if [ ! -f $HOME/.ssh/id_rsa ] ; then echo "# Creating _new_ SSH-keypair ..." ; date > $HOME/.ssh/id_rsa.generate.txt ; ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -P '' >> $HOME/.ssh/id_rsa.generate.txt; fi
## echo "# copy this key to your Github account my-SSH-keys ==> cat \$HOME/.ssh/id_rsa.pub"
## echo "# "
## cat $HOME/.ssh/id_rsa.pub
## echo "# "
## #
## echo "# hit <ENTER> if Github-stuff is done, else <CTRL>-C ..."
## read
## #
## cd $HOME
## git clone [email protected]:jdg71nl/opensyssetup.git
## ./opensyssetup/setup.sh
## #-EOF
#-EOF