Junos
Highlighted
Junos

JPC NFX250 asks for password when logging in

‎03-03-2020 10:07 PM

Junos Control Plane (JCP) of NFX250 device asked me for password when trying to log in. It should not

ask for this password. Documentation says that it can log into JCP without password. Any ideas?

Doc:

https://www.juniper.net/documentation/en_US/junos/information-products/pathway-pages/nfx-series/nfx-...

 

 

admin@server:~$ ssh root@one-nfx
root@one-nfx's password: 
Last login: Tue Mar  3 10:36:31 2020 from 10.160.5.181
root@one-nfx:~# virsh list
 Id    Name                           State
----------------------------------------------------
 2     vjunos0                        running
 3     an_vir_inst                    running

root@one-nfx:~# ssh vjunos0
Password:

It should not ask for password, any ideas?

8 REPLIES 8
Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-03-2020 10:19 PM

Hi

 

Try the following

 

ssh jdm-sysuser@vjunos0

 

 

The recommendation is: When you login to the JCP for the first time, set the root-authentication password. From the next time, use this password to access JCP.

When you leave JCP first time, without setting root password, you will face the issue you are seeing.

 

Hope this helps.

 

 

 

 

Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-04-2020 07:31 PM

Can I perform additional configurations such that I won't require me password to Junos Control Plane (JCP) anymore?

Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-05-2020 02:59 AM

Try the following:

 

request setup jdm-auto-login vjunos0

 

Once this commits then you should be able to login to vjunos0 without any password.

 

However this will work on only limited scenarios

 

(1) vjunos0 is already running _and_
(2) (A) The root-login is open on console (i.e. vjunos0 is at root's shell prompt) or 
    (B) The console is at login prompt and root password is "known Juniper internal password" (like "juniper123")

 

 

Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-06-2020 11:38 PM

In what mode do I run "request setup jdm-auto-login vjunos0"?
There is no 'setup' option inside JCP mode as seen in output

 

jdm-sysuser> request ?

Possible completions:
  app-engine           Request App-engine actions
  chassis              Perform chassis-specific operations
  dhcp                 Perform DHCP operations
  dhcpv6               Perform DHCPv6 operations
  interface            Perform interface tasks
  ipsec                Perform IP Security operations
  jdaf                 Request JDAF operation
  l2circuit-switchover  Perform l2circuit switchover
  lacp                 Request LACP actions
  message              Send text message to other users
  mpls                 Perform Multiprotocol Label Switching operations
  network-access       Request network-access related information
  pim                  Perform PIM operations
  routing-engine       Routing Engine
  security             Perform security-level operations
  session              Connect to line card
  snmp                 Request actions from the Simple Network Management Protocol daemon
  support              Perform JUNOS support tasks
  system               Perform system-level operations
  validation           Request route validation actions
  vpls-switchover      Perform LDP VPLS pseudowire switchover
{master:0}

jdm-sysuser> request 

 

Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-07-2020 02:48 AM

Try the command as it may be hidden. 

If the 2 conditions mentioned are true then it should work. Also what version is it ?

Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-07-2020 08:47 PM

it still didn't work.

 

root@nfx-device:~# ssh jdm-sysuser@vjunos0
Last login: Sun Mar  8 04:35:35 2020 from 192.168.1.1
--- JUNOS 15.1X53-D47.4 Kernel 64-bit FLEX JNPR-10.3-20170523.350481_build
{master:0}
jdm-sysuser> request setup 
                     ^
syntax error, expecting <command>.

jdm-sysuser> show version      
re0:
--------------------------------------------------------------------------
Model: nfx250_s2_10_t
Junos: 15.1X53-D47.4

Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-07-2020 09:14 PM

Hi

Try the following steps 

 

1.	load factory-default on jdm
2.	set the password to juniper123

3.	virsh console vjunos0
4.	load factory-default on jCP
5.	set the password to juniper123

6.	reboot whole box from jdm (request system reboot)

7.	wait for 5 min after booting 
8.	run "request setup jdm-auto-login vjunos0" on jdm

9.	ssh vjunos0 
10.	set the password to test123

11.	now run request setup jdm-auto-login vjunos0  on jdm
Highlighted
Junos

Re: JPC NFX250 asks for password when logging in

‎03-09-2020 09:37 PM

root@one-nfx:~# load factory-default on jdm

-bash: load: command not found

This command failed