918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Rev | Line | |
---|
[58828de] | 1 | #!/bin/bash |
---|
| 2 | echo "comprobando directorio .ssh del root" |
---|
| 3 | if [ ! -d /root/.ssh ] |
---|
| 4 | then |
---|
| 5 | echo "creando directorio .ssh 600" |
---|
| 6 | mkdir -p /root/.ssh |
---|
| 7 | chmod 700 /root/.ssh |
---|
| 8 | fi |
---|
| 9 | echo "creando el fichero authorized_keys" |
---|
| 10 | touch /root/.ssh/authorized_keys |
---|
| 11 | chmod 600 /root/.ssh/authorized_keys |
---|
| 12 | |
---|
| 13 | echo "importando la clave publica del servidor OG" |
---|
| 14 | cat /tmp/id_rsa.pub |
---|
| 15 | |
---|
| 16 | [ -f /tmp/id_rsa.pub ] && cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys || echo "no key publica og" |
---|
| 17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.