Difference between revisions of "Batch deployment of DSA key (SSH) and schedule backup with export"

From MikroTik Wiki
Jump to: navigation, search
Line 11: Line 11:
 
scp key_for_backup admin@$1:.
 
scp key_for_backup admin@$1:.
 
ssh admin@$1 "user ssh-keys import file=key_for_backup user=admin"
 
ssh admin@$1 "user ssh-keys import file=key_for_backup user=admin"
#ssh admin@$1 "system identity print"
 
 
echo "$1 " >> node_liste
 
echo "$1 " >> node_liste
 
</pre>
 
</pre>

Revision as of 21:13, 21 May 2008

Pasting in script and information very soon.

Use this

%ssh-keygen -t dsa

This creates a DSA key pair that is compatible with Mikrotik.

#!/bin/sh

scp key_for_backup admin@$1:.
ssh admin@$1 "user ssh-keys import file=key_for_backup user=admin"
echo "$1 " >> node_liste

yeah and more text. even more text

here comes script two

more text