SSH command runs but data is not the same as manual command

I am trying to run some commands on Dell switches via SSH. When I manully connect via ssh in terminal, I get prompted with switchName>

Then I can enter commands like show interfaces status to see VLAN info or show switch it displays the information.

When I run the command in n8n it only returns the switchName> for the stdout field.

Any ideas?

This usually happens because n8n’s SSH node runs non-interactively — the Dell switch expects an interactive shell (so you get just the switchName> prompt).

You can try forcing an interactive session using ssh -tt or combine the commands in a single SSH call (e.g. show interfaces status ; show switch).

If that still doesn’t work, you’ll likely need to wrap it with paramiko or a system-level SSH call from n8n to emulate a real terminal.

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