I was trying the assessment in the Penetration Tester Career Path. In the Recon and Enum assessment, there are two machines provided Ubuntu and Linux.
I have found starting 4 flags, I am not able to find the other two flags for which we have to ssh into a linux server in the lab. Either I am unable to find the last two flags due to my limited skills, or the last two flags have something to do with the Linux machine that I am unable to access.
the solution that you provided worked correctly. i was straying on the wrong path, the lab that you gave, helped me in figuring out what i was doing wrong.