Establishing an SSH Connection for a NETCONF Session and cRPD
Establishing an SSH Connection
SSH can be used to establish connections between a configuration management server and a device running Linux OS with cRPD. A configuration management server, as the name implies, is used to configure the device running Linux OS remotely. With SSH, the configuration management server initiates an SSH session with the device running Linux OS.
Enabling SSH
To enable SSH on a cRPD:
Port Forwarding Mechanism
To map a host port to a container port:
root@crpd01:~# docker run -d --name
crpd_instance -p host_port:container_port crpd:latest
root@crpd01:~# docker run -d --name
crpd_instance -p 8034:22 crpd:latest
Connecting to a NETCONF Server on Container
root@crpd01:~# ssh root@<hostip>
-p 8034 netconf
root@ubuntu-vm18's password: Last login: Fri May 3 06:38:21 2019 from 10.223.4.154 ===> Containerized Routing Protocols Daemon (CRPD) Copyright (C) 2018-19, Juniper Networks, Inc. All rights reserved. <===
The 8034 port on host is mapped to 22 port on container and opens an interactive shell session.