SSH ls command discrepancy, why?

Hello guys. I have a first time very odd issue. Or i had decaff by mistake.

( For reference n8n Self hosted, latest version )

I have s local server i SSH into and get the list of files via a simple ls command.

Thing is, if i do it via terminal, i get 13 files, if i use a SFTP client i get the same 13 files, but the n8n SSH node with the same command and the same path gets only 1. What am I doing wrong?

See screenshot. This shows the termina, the SFTP client and the n8n node.

Not only it is 1 file, it is also a file, which is definitely not present in the output on the left. Can you search on the server where that file is? It is not in either of other twi outputs.

[Jesus Huerta]402-42320250307223749(25464).wav

I appreciate your time
Wow good catch! I had not noticed that.
I ran this command on the terminal
find / -name ‘[Jesus Huerta]_402-423_20250307223749(25464).wav’ 2>/dev/null
and nothing came back on the terminal .

So where is the n8n SSH node getting that data from?

Try to escape the square brackets:

find / -name "\[Jesus Huerta\]_402-423_20250307223749(25464).wav" 2>/dev/null

Jabbson i appreciate your help and offer an apology. While i was working a team member swapped the hostname on the ssh node to a restored snapshot server. :face_with_steam_from_nose:

No worries @Alejandro, could happen to anyone.
Glad the mystery is solved :slight_smile:

Hoooly, I was invested for sure here :smiley:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.