štvrtok 10. februára 2022

generate ssh key and send via ansible

basic bash script.



 #!/bin/bash


echo what is the name of server?


read server


mkdir /mnt/$server


ssh-keygen -b 4096 -t rsa -f /mnt/$server/sshkey$(date +"%d-%m-%Y") -q -N ""



ansible-playbook /etc/ansible/ssh.yaml






## if you need comment these commands let me know please

Žiadne komentáre:

Zverejnenie komentára