bug & solution occuring between sFTP and BASH (.bashrc)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
zaffi
Junior Member
Junior Member
Posts: 34
Joined: 2009-03-24, 08:50 UTC

bug & solution occuring between sFTP and BASH (.bashrc)

Post by *zaffi »

I had a "timeout" error while trying to connect to my ssh shell counts on my linux server.

The error was received immediately, so it was NOT about timeout.

After few days of testing, I got a better error message from another program. The error told me that there is an issue with the bash profile.

(i'm sorry but i didn't write down the exact errors).

With this hint, I edited the

Code: Select all

.bashrc
file in all affected accounts, and removed all "echo " commands.

apparently
if bashrc prints anything, then the ssh negotiation process crashes.
This is a bug in SSH / BASH, and NOT of total commander.

However (!!!)
total command could be more clear with the error messages.
During the days of debugging, I couldn't see anything in TC msgbox or in TC connection listbox at the top that tells me what was the problem.


how to recreate:
linux CentOS 5.5
Total commander 8 b3 32bit
sftp plugin (where can i find sftp plugin version?)
add a .bashrc in your home directory,
edit .bashrc and add several "echo bla bla bla" commands.

ssh works fine,
but sftp fails immediately with an error message.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Which plugin do you use? Please check the readme.txt file (if there is any) in the plugin folder.
Author of Total Commander
https://www.ghisler.com
Post Reply