ssh and git
1) download
yum install git -y
2) ssh keys (generate and upload to github)
#ssh-keygen without passphrase
ssh-keygen -b 4096 -t rsa -q -N ""
upload to github via https://github.com
#check the connection
ssh -T git@github.com
3) git clone
git clone git@github.com:marsur/ansible_study.git
4) upload to github via ssh
vi /root/check_crontab.sh
--> cp /root/check_chrontab.sh ansible_study
cd ansible_study
git add check_crontab.sh
git commit -m check_crontab.sh
git push
Žiadne komentáre:
Zverejnenie komentára