Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


request security ssh password-less-authentication (Junos OS Evolved)



Configure SSH key-based authentication between the local device and a remote server.

When you execute the command, the device generates SSH keys for the current user, provided the user does not already have existing keys, and transfers the user's public key to the authorized_keys file of the specified user on the remote host. If you include the all-conf-users option, the device performs the operation for all configured users with SSH keys instead of only for the current user.

You can back up your device’s configuration to an archive site periodically or after each commit by configuring statements at the [edit system archival configuration] hierarchy level. Before you can configure the device to archive the configuration using an SCP-style URL, you must set up passwordless authentication between the local device (as the root user) and the remote server (for a remote user configured on the server).



(Optional) Configure SSH key-based authentication for all configured users that have an SSH key pair. If you omit this option, the device configures SSH key-based authentication for the user executing the command.

remote-host host Hostname or IP address of the remote server.
remote-user username Username that the local device uses to log in to the remote server.
routing-instance routing-instance-name (Optional) Name of the routing instance through which to reach the remote server.

Required Privilege Level


Sample Output

request security ssh password-less-authentication

Release Information

Command introduced in Junos OS Evolved Release 22.3R1.