5 SSH_PUB_KEY="$(cat /home/netconf/.ssh/id_dsa.pub| awk '{print $2}')"
7 echo '<system xmlns="urn:ietf:params:xml:ns:yang:ietf-system"><authentication><user><name>netconf</name><authorized-key><name>ssh_key</name><algorithm>ssh-dss</algorithm>' >> load_auth_pubkey.xml
8 echo '<key-data>'"$SSH_PUB_KEY"'</key-data></authorized-key></user></authentication></system>' >> load_auth_pubkey.xml
10 sysrepocfg --merge=load_auth_pubkey.xml --format=xml ietf-system
11 rm load_auth_pubkey.xml
13 ssh-keyscan -p 830 localhost >> ~/.ssh/known_hosts