The steps to prepare a JUNOS OS router for interaction using NETCONF services are as follows:
- Verify that SSH is configured on your router by ensuring that you have the following configuration present:
adamc@router> show configuration system services ssh;
- Generate SSH keys. Generate a public/private key pair using the SSH utility, ssh-keygen:
unix$ ssh-keygen -C "JUNOS Automation" -f JUNOS_auto_id_rsa Generating public/private rsa key pair. Enter file in which to save the key (.ssh/id_rsa): JUNOS_auto_id_rsa Enter passphrase (empty for no passphrase): <type nothing here> Enter same passphrase again: <again, nothing> Your identification has been saved in JUNOS_auto_id_rsa. Your public key has been saved in JUNOS_auto_id_rsa.pub. ...