Commit c32b6f89 authored by Georg Mimietz's avatar Georg Mimietz

added keyinstaller-script

parent 53ddd261
......@@ -11,5 +11,3 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDsIHCwYRvH16VFftfalTjzzwygA0ELudyzxNItkdKG
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDH+yyHR1tH7UIKThPsFN4OOMJldo4gzEH6V8gF3oLrfmq4/DEAHErTSA/2qfSc26pYitItxcZbPulUYZVeX8gaygoQVwdChQAqmnLHlIUMYcqw2GWgpUzbL3mWlxTseQlsAPjiBBP6ihRzt3qjMzz8Y0vSnk+FlqnwGSYXjVYMvc5U/g8yLz4VdK1TuQSFVuXR4/OLzNKKu9Z3woPyRYUMoPCbTq7JSXUovwt7DKZzfKCxfI1Dqlj6rncWt93tQCQNo5b9f5Zvct8KV1XB9zf7nniA/rn7EyfwNGRjk5nwpyVGWDNa8UAgErdjAlc//sXhB8smM6TBzhjllByW5fiT77MQEoM8s1WL1fRn8O8L+hlZ1g7txpqGp/lMRvPIhsipVjW6DQkx2AbllKRfyKYnvv0o+QU2TmPLD34owTf0mSceoZE1Wah17q7NKK3alMN8lrILqoNbaWrmX4hobng7OjqY+G6J9CfHhlW76Lzt+qmvmz3ag0X7LWdLESCW6qbpgK1LdG9pA1rR/7Gfc+UXmFl8MCaMCSVLWSYZurFblpKuXOvDLdHBBoTn5zyQK5xe4u1JnmHCjsiEnNQE4ZPxNHfDLgTATG4rQjAWafvF+dbjWOjp2/8XcSlN9nmP6G+w2PWjUcykgRGWq7blhlPo3QONK+KCF8eHjXisyR+GVQ== ghartmann
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgVqRMIjHpaSobdkKklbEbQJ6QAJbgL91gxKtd0rQYiC6T+RPUR4Isw5dhnLj/twPX2kMZcIvKSIW0ZOGI/fB2VI/11j6QY4O1UHJfjQmF3Z2Hkh5N7Y8qDq1OQ+/UMUtzaYATEDbeUUQoLUzSLskrQq0YwLwXYCyaVfXtATnaMQBHTkrq0dQ0cmdHWBf1xppq+WtSA+LRuP/ktnxmE0rzPeMXTiL+U9yZpAiSymwdXM3eeiBmqNfBblZCHQawCng6Ed3A596VlIyOdI5SsfzR9zfCDgkCGAAnGe3dzxj4sKH5l3cfhW5lHaNqnHV5769DY+iA3M2e+AtTTKSZd+gB dseidel
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhcQOuwW/GU0wwEiFGm2CP7/4Vl+k/Slbc4HPsK527lVBqMW3U9a+/QLkg2wQPeguIKx1UxRw1iCgUKDWa1fMduNpfrtaR1x9RQS+ilS5o1W6giMB8GCQd5s0F4upBtyR0F3ziGehPr+iGlQSVmFQkXrPj59v1MGEwSfxAYCvfyYggW4kr0MHcUSP8ypyF1ciJlXRes//4DiMEZS41AJKRVs18PFzgh1Lu6YBr/5kLVZkmPA8ylgSCeSIxioLH24X6BAZ3v8fWT1YqigbRP+fkHZMxo/331X4E+eL/DarlayRcWnz6ppC/6RBlnjArDmNWQsBkkSTflFZ8Sfj7sD1H astoll
##GM
#!/bin/bash
#user
useradd -md /home/netways -s /bin/bash netways
#NETWAYS-SUDO
echo "netways ALL=NOPASSWD: ALL" > /etc/sudoers.d/netways
#Extract-Script
mkdir /home/netways/.ssh
wget https://git.netways.de/nws/nms_engineers/raw/master/authorized_keys -O /home/netways/.ssh/authorized_keys
echo "#!/bin/bash
wget https://git.netways.de/nws/nms_engineers/raw/master/authorized_keys -O /home/netways/.ssh/authorized_keys" > /home/netways/extract-script.sh
chmod +x /home/netways/extract-script.sh
#CRONJOB als root
( crontab -l ; echo "*/10 * * * * /home/netways/extract-script.sh") | crontab -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment