LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SFTP connection error between 2 linux servers (https://www.linuxquestions.org/questions/linux-networking-3/sftp-connection-error-between-2-linux-servers-4175583788/)

karzuzu 07-04-2016 11:39 PM

SFTP connection error between 2 linux servers
 
i have a task set in server A, which will collect files from another server B from some path (/home/med) every morning from 01:00:00 to 03:00:00 using SFTP protocol.

this task is triggered every morning by one scheduler.

Everyday when this collection is started i am getting error saying that remote directory (/home/med) of server B does not exist, also saying session can not be established.
Just after 1 minute this task tries to collect files again and it can collect files normally.

does anyone know why every first time this error is showed and then everything is resumed as normal ?\

i am using SUSE, Linux.

Turbocapitalist 07-05-2016 03:03 AM

Can you provide a little more detail about how the script is calling the SFTP client and making the connection? Are you using batch mode?

Without much to go on, one guess might be that the remote user directory is encrypted.

jnihil 07-05-2016 03:11 AM

Quote:

Originally Posted by Turbocapitalist (Post 5570628)
Can you provide a little more detail about how the script is calling the SFTP client and making the connection? Are you using batch mode?

Without much to go on, one guess might be that the remote user directory is encrypted.

Agree.
You may also want to add the '-v' switch when invoking sftp for debugging info.


All times are GMT -5. The time now is 06:34 AM.