Accessing Remote Devices with the CLI
This section contains the following topics:
Using the telnet Command
![]() | Note: On SRX210, SRX220, SRX240, and SRX650 devices, the maximum number of concurrent telnet sessions is as follows: SRX220 3 |
You can use the CLI telnet command to open a Telnet session to a remote device:
user@host> telnet host <8bit> <bypass-routing> <inet> <interface interface-name> <no-resolve> <port port> <routing-instance routing-instance-name> <source address>To escape from the Telnet session to the Telnet command prompt, press Ctrl-]. To exit from the Telnet session and return to the CLI command prompt, enter quit.
Table 19 describes the telnet command options. For more information, see the Junos System Basics and Services Command Reference.
Table 19: CLI telnet Command Options
Option | Description |
|---|---|
8bit | Use an 8-bit data path. |
bypass-routing | Bypass the routing tables and open a Telnet session only to hosts on directly attached interfaces. If the host is not on a directly attached interface, an error message is returned. |
host | Open a Telnet session to the specified hostname or IP address. |
inet | Force the Telnet session to an IPv4 destination. |
interface source-interface | Open a Telnet session to a host on the specified interface. If you do not include this option, all interfaces are used. |
no-resolve | Suppress the display of symbolic names. |
port port | Specify the port number or service name on the host. |
routing-instance routing-instance-name | Use the specified routing instance for the Telnet session. |
source address | Use the specified source address for the Telnet session. |
Using the ssh Command
![]() | Note: On SRX210, SRX220, SRX240, and SRX650 devices, the maximum number of concurrent ssh sessions is as follows: SRX220 3 |
You can use the CLI ssh command to use the secure shell (SSH) program to open a connection to a remote device:
user@host> ssh host <bypass-routing> <inet> <interface interface-name> <routing-instance routing-instance-name> <source address> <v1> <v2>Table 20 describes the ssh command options. For more information, see the Junos System Basics and Services Command Reference.
Table 20: CLI ssh Command Options
Option | Description |
|---|---|
bypass-routing | Bypass the routing tables and open an SSH connection only to hosts on directly attached interfaces. If the host is not on a directly attached interface, an error message is returned. |
host | Open an SSH connection to the specified hostname or IP address. |
inet | Force the SSH connection to an IPv4 destination. |
interface source-interface | Open an SSH connection to a host on the specified interface. If you do not include this option, all interfaces are used. |
routing-instance routing-instance-name | Use the specified routing instance for the SSH connection. |
source address | Use the specified source address for the SSH connection. |
v1 | Force SSH to use version 1 for the connection. |
v2 | Force SSH to use version 2 for the connection. |
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
