The traceback shows an SSHError indicating the socket connection to port 830 (the standard NETCONF-over-SSH port) could not be opened, which results in a ConnectRefusedError from the Junos PyEZ library. This occurs because the Junos device does not have the NETCONF service enabled, so nothing is listening on port 830 to accept the SSH connection. Enabling NETCONF over SSH requires the configuration statement 'set system services netconf ssh' on the Junos device.
Community Discussion