Remote management access to the router is disabled by default and must be explicitly enabled. Only console access to the router is enabled in a default configuration. This restriction applies to all management access protocols such as telnet, ssh and ftp. The information below describes Telnet and SSH methods and the commands to enable them.
Problem or Goal:
To enable telnet session to the switch, type the following commands:
 user@switch# set system services telnet
commit your changes
The secure shell (SSH) provides secure encrypted communications over an insecure network and is therefore useful for switch management. The switch needs the Crypto package to enable the SSH service. The Crypto package is installed by default with the 'domestic' JUNOS-ex software package. To verify that the Crypto package is installed, check the 'show version' output on the switch.
To enable secure session to the switch, use the following commands:
 user@switch# set system services ssh
Commit your changes
Both access methods allow the user to control the number of allowed connections (connection-limit) and number of allowed connections per minute (rate-limit)
user@switch# set system services telnet connection-limit 10 rate-limit 4 user@switch# set system services ssh connection-limit 10 rate-limit 4