Set-User

These scenarios demonstrate how to establish telnet connections using the set-user parameter to specify the username directly in the telnet command, avoiding the traditional login prompt flow and proceeding directly to password authentication.

Telnet Connection with Set-User Parameter

Description

In this scenario, a telnet connection is established using the set-user parameter to specify the username directly in the telnet command. The client device DUT1 connects to the server device DUT0 using the command “telnet <IP> set-user <username>”, which bypasses the login prompt and goes directly to password authentication. After successful authentication, the test verifies that the session is established on the target device and that the specified user is logged in.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system login user admin2 authentication encrypted-password '$6$GyxiN2aQQHZiPY56$okKv9Xkw5SMLFPFO13I9MiIk7vFpAtdKfC7cSjlFlyM4PHd5yhs9Ji/lDqgp.gByKIkPGrjZBXlqb5moLUEOz0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 10.215.168.21/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 10.215.168.20 from DUT1:

admin@DUT1$ ping 10.215.168.20 count 1 size 56 timeout 1
Show output
PING 10.215.168.20 (10.215.168.20) 56(84) bytes of data.
64 bytes from 10.215.168.20: icmp_seq=1 ttl=64 time=0.404 ms

--- 10.215.168.20 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.404/0.404/0.404/0.000 ms

Step 4: Run command show running at DUT0 and check if output contains the following tokens:

set system login user admin2
Show output
# Teldat OSDx VM version v4.2.8.1
# Thu 11 Dec 2025 18:30:41 +00:00
# Warning: Configuration has not been saved
set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system login user admin2 authentication encrypted-password '$6$GyxiN2aQQHZiPY56$okKv9Xkw5SMLFPFO13I9MiIk7vFpAtdKfC7cSjlFlyM4PHd5yhs9Ji/lDqgp.gByKIkPGrjZBXlqb5moLUEOz0'

Step 5: Init a Telnet connection from DUT1 to IP address 10.215.168.20 using set-user admin2 :

admin@DUT1$ telnet 10.215.168.20 set-user admin2
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.

Linux 6.1.140 (osdx) (pts/0)

Password:

Welcome to Teldat OSDx v4.2.8.1

This system includes free software.
Contact Teldat for licenses information and source code.

admin2@osdx$