user cannot create a network folder using sftp

Hello.

Given 3 computers A, B, C
A user can ssh to his account from any of computer A or B againt computer C
A user can create a network folder using fish from any of computer A or B againt computer C
But a user cannot create a network folder using sftp from any of computer A or B againt computer C

Note : Removing ~/.ssh/known_hosts does not solve the problem

~> ssh user@192.168.130.80

 +----------------------------------------------------------------+
 |                                                                |
 |  Unauthorized or improper use of this system may result in     |
 |  administrative disciplinary action, civil charges/criminal    |
 |  penalties, and/or other sanctions. By continuing to use this  |
 |  system you indicate your awareness of and consent to these    |
 |  terms and conditions of use.                                  |
 |                                                                |
 +----------------------------------------------------------------+

Last login: Thu Sep  9 14:23:52 2021 from 192.168.130.60

You are connected to 192.xxx.xxx.NNN    >>>>>

Current version : 40-0-1        Date : 2020_09_04       Sub Dir : /backup_sys/TMP/CONF_CUR_DIR/2020_09_04
PWD : /home/user            User Dir : /backup_sys/TMP/CUR_USER_DIR/2020_09_04      Nb Func : 82
BACKUP_SYS_SCRIPT_PATH : /backup_sys/000_COMMON
----------------------------------------------------------------------------------------------------

NOT IN RUNLEVEL 3 -- RUNLEVEL : 5

~> 

Running ssh in debug mode on the distant host show that the session is still open but the local session still wait for connection ( nothing tell if the is a problem or just waiting for connection )

Any help is welcome.

fish as in https://fishshell.com/?

NOT IN RUNLEVEL 3 – RUNLEVEL : 5

It looks to me that message is not coming from the operating system but some kind of (propriety) script so I think you are on your own.

The question is not about ssh which works :

A user can ssh to his account from any of computer A or B againt computer C

THe question is not about the fish protocol which works :

A user can create a network folder using fish from any of computer A or B againt computer C

The question is about the protocol sftp which does not works.

Any help is welcome

Hi
Add some verbosity to the sftp command to see what’s happening… or if just uploading a file use scp instead…


sftp -vv user@host

scp somefile user@host:somefile
scp somefile user@host:/somedirectory/somefile

ok I have a try.

My problem come from host output given by ~/.bashrc that print a debug message.
After adding a test

if  $- == "*i* ]] ; then
...
fi

No more problem.

Thank you very much for your tip.