ssh-copy-id for network devices
ssh-copy-id equivalent for network devices, implemented using Netmiko.
Netmiko >= 1.4.0
pip install git+https://github.com/networkop/ssh-copy-net.git
Enter device IP, vendor and admin credentials. Default behaviour is to install local user's public SSH key.
[[email protected] ~]$ ssh-copy-net 10.6.142.1 juniper
Username: admin
Password:
All Done!
Login the device without entering password:
[[email protected] ~]$ ssh 10.6.142.1
--- JUNOS 12.3X48-D30.7 built 2016-04-28 22:37:34 UTC
{primary:node0}
[email protected]>