Satisfy the Prerequisites for Establishing a Connection to the Junos XML Protocol Server
A Junos XML protocol client application can choose between several protocols to connect to the Junos XML protocol server on devices running Junos OS or devices running Junos OS Evolved. To establish a connection to the server, a client application must satisfy the requirements that are applicable to all access protocols. A client application must also satisfy the requirements for the selected access protocol. The following sections outline the common and protocol-specific prerequisites.
Prerequisites for All Access Protocols
A client application must be able to log in to each device on which it establishes a connection with the Junos XML protocol server. You can create a Junos login account for the application, as described in this section. Alternatively, you can skip this section and enable authentication through RADIUS or TACACS+.
To create a local user account:
Prerequisites for Clear-Text Connections
A client application can use the Junos XML protocol-specific clear-text access protocol to communicate with the Junos XML protocol server. The clear-text protocol sends unencrypted text directly over a TCP connection without using any additional protocol (such as SSH, SSL, or Telnet).
Devices running the Junos-FIPS software do not accept Junos XML protocol clear-text connections. We recommend that you do not use the clear-text protocol in a Common Criteria environment. For more information, see the Secure Configuration Guide for Common Criteria and Junos-FIPS.
To enable client applications to use the clear-text protocol to connect to the Junos XML protocol server:
Prerequisites for SSH Connections
To enable a client application to use the SSH protocol to connect to the Junos XML protocol server, perform the following steps:
Prerequisites for Outbound SSH Connections
The outbound SSH feature allows the initiation of an SSH session between a Junos device and a
network management system (NMS) where client-initiated TCP/IP connections are
blocked (for example, when the device is behind a firewall). To enable outbound
SSH, configure the outbound-ssh statement hierarchy on the
Junos device. After you commit the configuration, the Junos device initiates
outbound SSH sessions with the configured management clients. Once the outbound
SSH session is initialized and the connection is established, the NMS initiates
the SSH sequence as the client. The Junos device, acting as the server,
authenticates the client.
Setting up outbound SSH involves:
Configuring the device running Junos OS or the device running Junos OS Evolved for outbound SSH
Configuring the management server for outbound SSH
To configure the Junos device for outbound SSH:
To set up the configuration management server:
Satisfy the prerequisites discussed in Prerequisites for All Access Protocols.
-
Enable the application to access the SSH software.
Obtain the SSH software and install it on the computer where the application runs. For information about obtaining and installing SSH software, see http://www.ssh.com and http://www.openssh.com.
(Optional) Manually install the device's public key for use with the SSH connection.
Configure the client system to receive and process initialization broadcast requests. The initialization requests use the following syntax:
(Recommended) If you configured the
secretstatement, the Junos device sends its public SSH key along with the initialization sequence. When the NMS receives the key, the client needs to determine what to do with the key. We recommend that you replace any current public SSH key for the device with the new key. This method ensures that the client always has the current key available for authentication.MSG-ID: DEVICE-CONN-INFO\r\n MSG-VER: V1\r\n DEVICE-ID: <device-id>\r\n HOST-KEY: <pub-host-key>\r\n HMAC: <HMAC(pub-SSH-host-key, <secret>)>\r\n
If you did not configure the
secretstatement, the Junos device does not send its public SSH key along with the initialization sequence. You need to manually install the current public SSH key for the device.MSG-ID: DEVICE-CONN-INFO\r\n MSG-VER: V1\r\n DEVICE-ID: <device-id>\r\n
Prerequisites for SSL Connections
To enable a client application to use the SSL protocol to connect to the Junos XML protocol server, perform the following steps:
Prerequisites for Telnet Connections
To enable a client application to use the Telnet protocol to access the Junos XML protocol server, perform the steps described in this section.
Devices running the Junos-FIPS software do not accept Telnet connections. We recommend that you do not use the Telnet protocol in a Common Criteria environment. For more information, see the Secure Configuration Guide for Common Criteria and Junos-FIPS.