O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more

The SSH/SCP method of transferring files to the network management host makes use of a secure, encrypted transport; however, it comes with the downside that you need to store access passwords within the JUNOS configuration. This is difficult to avoid, because Juniper doesn't provide an obvious, supported way of making use of SSH keys for authentication. If you have a strong aversion to storing passwords in your JUNOS configuration file, and you understand the caveats of deviating from Juniper's recommendations, then you can implement SSH key-based authentication for SCP file transfers that originate from event-policies.

  1. Start up a BSD shell from your JUNOS host and use the su command to become a root user:
 adamc@router> start ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required