I am testing radius authentication for vyos 1.2.7.
In this time, I found a unpredictable result.
I wanted to login user as shakapon, but in fact I logined as radius_user.
It’s my log.
shakapon@LAB-OAM:~$ ssh email@example.com
Welcome to VyOS
Creating directory ‘/home/shakapon’.
Linux vyos 5.10.28-amd64-vyos #1 SMP Fri Apr 9 13:46:54 UTC 2021 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
I expected to login user as shakapon, but I logined as radius_user.
Next, I opened new terminal, and I also login as shkapon. In this case, I could login as shakapon.
This is my VyOS Configuration.
set interfaces ethernet eth0 address ‘192.168.1.242/24’
set interfaces ethernet eth0 description ‘Out-Of-Band Management’
set interfaces ethernet eth0 vrf ‘Mgmt’
set vrf name Mgmt table ‘100’
set system login radius server 192.168.1.250 key ‘XXXXXXXX’
set system login radius vrf ‘Mgmt’
set service ssh port ‘22’
set service ssh vrf ‘Mgmt’
My radius Server is freeradius 3.0.20 on Ubuntu 20.04.
I cannot understand thise behavior.
I want always to login by shakapon as shakapon.