SSH to Connect to Junos CLI Flashcards
What is SSH used for in Junos OS?
SSH (Secure Shell) is used to securely connect to a Junos device for remote management and configuration.
How do you enable SSH on a Junos device?
SSH is enabled using the command set system services ssh in configuration mode, followed by a commit.
What is the default port used by SSH in Junos OS?
The default port for SSH is port 22.
How do you check if SSH is running on a Junos device?
You can check SSH status using the command show system services ssh.
What command is used to generate SSH keys in Junos OS?
The ssh-keygen command is used to generate SSH key pairs.
How do you access the Junos CLI remotely using SSH?
You use an SSH client and provide the device’s IP address, followed by the username and password.
What command is used to terminate an SSH session in Junos OS?
You can terminate the session by typing exit or logout.
What is the role of the SSH public and private key pair in Junos OS?
The public key is stored on the Junos device, while the private key is stored on the client for secure, passwordless login.
How do you configure user access for SSH login in Junos OS?
User access is configured in the system login stanza, specifying usernames and permissions.
How can you restrict SSH access to certain IP addresses in Junos OS?
You can restrict SSH access by configuring firewall filters or by specifying source IP addresses in the set system services ssh command.