[Contents] [Prev] [Next] [Index] [Report an Error]

Prerequisites for Outbound SSH Connections

The outbound SSH feature allows the initiation of an SSH session between JUNOS routers and Network and System Management servers where client initiated TCP/IP connections are blocked (for example when the router is behind a firewall). To configure outbound SSH, you add an outbound-ssh configuration statement to the JUNOS router. Once configured and committed, the JUNOS router will begin to initiate an outbound SSH session with the configured management clients. Once the outbound SSH session is initialized and the connection is established, the Network and System Management server initiates the SSH sequence as the client and the JUNOS device as the server that authenticates the client.

Setting up outbound SSH involves:

To configure the JUNOS router for outbound SSH:

  1. Satisfy the prerequisites discussed in Prerequisites for All Access Protocols.
  2. In the [edit system services ssh] hierarchy level, set the SSH protocol to v2:
    [edit system services ssh]
    set protocol-version v2
  3. Generate/obtain a public/private key pair for the JUNOS router. This key pair will be used to encrypt the data transferred across the SSH connection. For more information on generating key pairs, see the System Basics Configuration Guide.
  4. If the public key will be installed on the application management system manually, transfer the public key to the NSM server.
  5. Add the following outbound-ssh statement at the [edit system services] hierarchy level:
    [edit system services]
    outbound-ssh client {
    application-id {
    device-id device-id;
    secret secret;
    keep-alive {
    retry number;
    timeout number;
    }
    reconnect-strategy (sticky | in-order) ;
    services netconf;
    address {
    port destination-port;
    retry number;
    timeout number;
    }
    }
    }

    The attributes are as follows:

  6. Commit the configuration:
    [edit]
    user@host# commit

To set up the Network and Systems Management Server:

  1. Satisfy the prerequisites discussed in Prerequisites for All Access Protocols.
  2. Enable the application to access the SSH software.
  3. (Optional) Manually install the JUNOS router's public key for use with the SSH connection.
  4. Configure the client system to receive an process initialization broadcast requests. The intialization requests use the following syntax:

[Contents] [Prev] [Next] [Index] [Report an Error]