poison shell help

I have gotten rce with lfi,
I can execute commands such as ls, iconfig remotely but whenever I want to execute a php or nc reverse shell, it never works
This box is rated easy, am I overthinking something?

if i remember correctly this box has some sort of firewall on it that prevents any reverse or bind shells.

You need to login in ssh ,you dont need a shell

There is another way to get to the machine. Your initial LFI vector is correct, you would just need to do more enumeration for other items you can find

SSH then I keep getting connection refused after using the secret in second connection using secret. Can anyone help?