Connection fine but Prompt Statement blocks directory listing

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
MorningBrew
500 Command not understood
Posts: 2
Joined: 2022-09-25 08:22
First name: Emmon
Last name: Simbo

Connection fine but Prompt Statement blocks directory listing

#1 Post by MorningBrew » 2022-09-25 08:32

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

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Connection fine but Prompt Statement blocks directory listing

#2 Post by boco » 2022-09-25 23:55

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.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Connection fine but Prompt Statement blocks directory listing

#3 Post by botg » 2022-09-26 07:22

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.

MorningBrew
500 Command not understood
Posts: 2
Joined: 2022-09-25 08:22
First name: Emmon
Last name: Simbo

Re: Connection fine but Prompt Statement blocks directory listing

#4 Post by MorningBrew » 2022-09-26 08:03

Thanks for clearing this up.

Post Reply