I was having trouble on my windows device with the working directory and I believe the issue is the default terminal was cmd but n8n sends ssh that works better with powershell. so i ran the command to change my default terminal that n8n would use:
PS C:\WINDOWS\system32> Set-ItemProperty -Path HKLM:\SOFTWARE\OpenSSH -Name DefaultShell `
>> -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
>> Restart-Service sshd
then my n8n node looked like:
Hope this helps, SSH is pretty tricky