Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Connecting to a Device by Using Secure Console

You use Secure Console to establish an SSH connection to a device from the Junos Space user interface. You can establish multiple SSH connections and connect to multiple managed or unmanaged devices. You can also establish multiple SSH sessions to the same device. A new SSH terminal window is opened for every new connection to the device.

CAUTION:

Some browser plug-ins may cause undesirable behavior in open SSH windows; disabling such plug-ins may resolve the issue. For example, if the Firebug plug-in is activated within an SSH window opened in Mozilla Firefox, the window cannot be restored, resized, or maximized and the console area remains fixed; disabling the Firebug plug-in resolves this issue.

You can connect to a device through an SSH connection from the Device Management page or the Secure Console page.

This topic includes steps to connect to a managed and unmanaged device from the Device Management or Secure Console page.

Connecting to a Managed Device from the Device Management Page

Before you open an SSH session to connect to a managed device from the Device Management page, ensure that:

  • You have the privileges of a Super Administrator or Device Manager in Junos Space Network Management Platform.

  • The status of the managed device is “UP.”

  • You have configured the Allow users to auto log in to devices using SSH option on the Modify Applications page. If you select this option, Junos Space Platform automatically logs in to the device when an SSH connection is initiated to the device.

    To connect to a logical system, you must always enter the username and password irrespective of whether or not you have selected the Allow users to auto log in to devices using SSH option.

To connect to a managed device:

  1. On the Junos Space Network Management Platform user interface, select Devices > Device Management.

    The Device Management page is displayed.

  2. Select a device to which you want to connect and select Device Access > SSH to Device from the Actions menu.

    The SSH to Device pop-up window is displayed.

    Note:

    If you have cleared the Allow users to auto log in to devices using SSH option on the Modify Applications page, the SSH to Device pop-up window is displayed. The IP address is automatically displayed in the IP address field. Enter the username and password in the User name and Password fields respectively.

  3. In the IP Address field, enter a valid IP address of the device.
    Note:

    You can enter the IP address in either the IPv4 or IPv6 format. Refer to http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml for a list of restricted IPv4 addresses and http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml for a list of restricted IPv6 addresses.

  4. In the Username field, enter the username of the device.

    The username must match the username configured on the device.

  5. In the Password field, enter the password to access the device.

    The password must match the password configured on the device.

  6. If you want to change the value, specify a value specified in the SSH port for device connection field on the Modify Application Settings page in the Administration workspace

    The default value is 22.

    Note:

    If you enter a port number other than the one you specified on the Modify Application Settings page, the SSH connection is not established.

  7. Click Connect.

    Junos Space Platform validates the fingerprint stored in the database with that on the device.

    • If you have enabled the Manually Resolve Fingerprint Conflict check box on the Modify Application Settings page in the Administration workspace and the fingerprints do not match, the connection is disconnected and the Device Authenticity error message dialog box is displayed. The authentication status of the device is modified to Fingerprint Conflict.

    • If you have disabled the Manually Resolve Fingerprint Conflict check box on the Modify Application Settings page in the Administration workspace and the fingerprints do not match, the new fingerprint is updated in the Junos Space Platform database.

    If the fingerprints on the device match the fingerprints in the database, the SSH terminal window is displayed.

    Note:

    You may receive error messages such as Unable to Connect, Authentication Error, or Connection Lost or Terminated, which are displayed as standard text in the terminal window. If you receive an error message, all other functionality in the terminal window is stopped. You should close this terminal window and open a new SSH session.

  8. You can perform the following tasks in the terminal window:
    • (Optional) Enter CLI commands to monitor and troubleshoot the device from this terminal window. Use the following terminal control characters:

      • Ctrl+a—Moves the cursor to the start of the command line

      • Ctrl+e—Moves the cursor to the end of the command line

      • (Up arrow key)—Repeats the previous command

      • Tab—Completes a partially typed command

    • (Optional) Minimize or maximize the terminal window by clicking the minimize or maximize button on the top-right corner.

    • (Optional) Resize the terminal window by dragging the terminal window horizontally or vertically by using the mouse.

    • (Optional) Right-click the terminal window to copy and paste the command from the local computer.

    • To terminate the SSH session, type exit and press Enter.

Click Close to close the SSH terminal window.

Connecting to an Unmanaged Device from the Device Management Page

Before you connect to an unmanaged device by using the Secure Console from the Device Management page, ensure that:

  • You have the privileges of a Super Administrator or Device Manager in Junos Space Network Management Platform.

  • The device is configured with a static management IP address. This IP address should be reachable from the Junos Space Appliance.

  • The SSH v2 protocol is enabled on the device.

    To enable SSH v2 on a device, enter the set system services ssh protocol-version v2 command at the command prompt.

  • The status of the device is “UP.”

  • A valid username and password are created on the device.

  • Clear the Allow users to auto log in to devices using SSH option on the Modify Application Settings page.

To connect to an unmanaged device:

  1. On the Junos Space Network Management Platform user interface, select Devices > Device Management.

    The Device Management page is displayed.

  2. Select the unmanaged device and select Device Access > SSH to Device from the Actions menu.

    The SSH to Device pop-up window is displayed.

  3. In the IP Address field, enter a valid IP address for the device.
    Note:

    You can enter the IP address in either the IPv4 or IPv6 format. Refer to http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml for a list of restricted IPv4 addresses and http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml for a list of restricted IPv6 addresses.

  4. In the Username field, enter the username for the device.

    The username must match the username configured on the device.

  5. In the Password field, enter the password to access the device.

    The password must match the password configured on the device.

  6. In the Port field, enter the port number to use for the SSH connection.

    The default value is 22. If you want to change the value, specify a value specified in the SSH port for device connection field on the Modify Application Settings page in the Administration workspace.

  7. Click Connect.

    The Device Authenticity dialog box is displayed. This dialog box displays the SSH fingerprint of the unmanaged device.

  8. Click Yes.

    The SSH terminal window is displayed.

    Note:

    You may receive error messages such as Unable to Connect, Authentication Error, or Connection Lost or Terminated, which are displayed as standard text in the terminal window. If you receive an error message, all other functionality in the terminal window is stopped. You should close this terminal window and open a new SSH session.

  9. You can perform the following tasks in the terminal window:
    • (Optional) Enter CLI commands to monitor and troubleshoot the device from this terminal window. Use the following terminal control characters:

      • Ctrl+a —Moves the cursor to the start of the command line

      • Ctrl+e—Moves the cursor to the end of the command line

      • (Up arrow key)—Repeats the previous command

      • Tab—Completes a partially typed command

    • (Optional) Minimize or maximize the terminal window by clicking the minimize or maximize button on the top-right corner.

    • (Optional) Resize the terminal window by dragging the terminal window horizontally or vertically by using the mouse.

    • (Optional) Right-click the terminal window to copy and paste the command from the local computer.

    • To terminate the SSH session, type exit and press Enter.

Click Close to close the SSH terminal window.

Connecting to a Managed or Unmanaged Device from the Secure Console Page

Before you connect to a managed or unmanaged device from the Secure Console page, ensure that:

  • You have the privileges of a Super Administrator or Device Manager in Junos Space Network Management Platform.

  • The device is configured with a static management IP address. This IP address should be reachable from the Junos Space Appliance.

  • The SSH v2 protocol is enabled on the device.

    To enable SSH v2 on a device, enter the set system services ssh protocol-version v2 command at the command prompt.

  • The status of the device is “UP.”

  • A valid username and password are created on the device.

To connect to a managed or unmanaged device from the Secure Console page:

  1. On the Junos Space Network Management Platform user interface, select Devices > Secure Console.

    The Secure Console page is displayed. This page displays the fields you need to specify to connect using the Secure Console.

  2. In the Username field, enter the username of the device.

    The username must match the username configured on the device.

  3. In the Password field, enter the password to access the device.

    The password must match the password configured on the device.

  4. If you want to change the value, specify a value specified in the SSH port for device connection field on the Modify Application Settings page in the Administration workspace.

    The default value is 22.

  5. Click Connect.

    If you are connecting to a Juniper Networks device, Junos Space Platform validates the fingerprint stored in the database with that on the device.

    1. If you have enabled the Manually Resolve Fingerprint Conflict check box on the Modify Application Settings page in the Administration workspace and the fingerprints do not match, the connection is disconnected and the Device Authenticity error message dialog box is displayed. The authentication status of the device is modified to Fingerprint Conflict.
    2. If you have disabled the Manually Resolve Fingerprint Conflict check box on the Modify Application Settings page in the Administration workspace and the fingerprints do not match, the new fingerprint is updated in the Junos Space Platform database.

    If the fingerprints on the device match the fingerprints in the database, the SSH terminal window is displayed.

    If you are connecting to an unmanaged device, the Device Authenticity error message dialog box is displayed. This dialog box displays the SSH fingerprint of the unmanaged device.

    1. Click Yes.

      The SSH terminal window is displayed.

    Note:

    You may receive error messages such as Unable to Connect, Authentication Error, or Connection Lost or Terminated, which are displayed as standard text in the terminal window. If you receive an error message, all other functionality in the terminal window is stopped. You should close this terminal window and open a new SSH session.

  6. You can perform the following tasks in the terminal window:
    • (Optional) Enter CLI commands to monitor and troubleshoot the device from this terminal window. Use the following terminal control characters:

      • Ctrl+a—Moves the cursor to the start of the command line

      • Ctrl+e—Moves the cursor to the end of the command line

      • (up arrow key)—Repeats the previous command

      • Tab—Completes a partially typed command

    • (Optional) Minimize or maximize the terminal window by clicking the minimize or maximize button on the top-right corner.

    • (Optional) Resize the terminal window by dragging the terminal window horizontally or vertically by using the mouse.

    • (Optional) Terminate a process using the Ctrl+c key combination.

    • (Optional) Right-click the terminal window to copy and paste the command from the local computer.

    • To terminate the SSH session, type exit and press Enter.

Click Close to close the SSH terminal window.