Page 1 of 1

Connection fine but Prompt Statement blocks directory listing

Posted: 2022-09-25 08:32
by MorningBrew
Hi

On the remote server, we have a menu enabled in our bashrc which uses a prompt statement variable (which performs some echo). If this is enabled filezilla connects fine but we don't get any further and it hangs. If I disable the menu, it connects fine. Is there a way to bypass this. Not sure it's a filezilla or ssh issue truth be told.

Trace: Access granted
Trace: Opening main session channel
Trace: Opened main channel
Trace: Started a shell/command
Status: Connected to localhost
Error: Connection timed out after 20 seconds of inactivity
Trace: CControlSocket::DoClose(2050)

This is as far as it gets

Re: Connection fine but Prompt Statement blocks directory listing

Posted: 2022-09-25 23:55
by boco
FileZilla only supports the SFTP subsystem, not the whole SSH2 protocol. That means it also does not support the shell, which is why your connection hangs, as it expects an interactive shell session.

Re: Connection fine but Prompt Statement blocks directory listing

Posted: 2022-09-26 07:22
by botg
Two options: Use .bash_profile so the custom prompts are only used in login shells, or check in your script whether it's an interactive session.

Re: Connection fine but Prompt Statement blocks directory listing

Posted: 2022-09-26 08:03
by MorningBrew
Thanks for clearing this up.