Juniper Junos connection templates
The juniper/ folder holds two SSH templates for Junos, both Core and Pro, neither using enable mode: a Junos account lands in operational mode with whatever its login class allows. This page covers release v2.2.2. The folder has no README; what follows comes from the template files.
Which template
| Template | Use for |
|---|---|
juniper-junos-ssh-noenable |
Junos over SSH. Start here |
juniper-junos-ssh-noenable-kex |
Junos devices whose SSH server hangs during key exchange |
Both expect lowercase login: and password: prompts, turn paging off with set cli screen-length 0, and allow 60 seconds for the connection.
The KEX override
Some older Junos SSH servers stall during key exchange with the algorithms rConfig offers by default. The kex variant sets kexOverride: on and restricts the offer to one algorithm:
kexOverride: onkexAlgorithms: - "diffie-hellman-group14-sha256"The template notes this is the minimum confirmed to work against Juniper OpenSSH 7.5; add or remove algorithms for your device. Both keys need rConfig Pro V8.3.3 or Core 8.2.19 or later. Older versions ignore them without an error and negotiate with the default list, so the template behaves exactly like the standard one there.
The templates
rConfig-templates / juniper /juniper-junos-ssh-noenable.ymlView on GitHub- Protocol
- SSH, port 22
- Enable
- off
- Paging
- set cli screen-length 0
- Status
- community-tested
- Protocol
- SSH, port 22
- Key exchange
- diffie-hellman-group14-sha256
- Paging
- set cli screen-length 0
- Status
- community-tested