LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-04-2016, 11:39 PM   #1
karzuzu
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
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.

Last edited by karzuzu; 07-04-2016 at 11:44 PM.
 
Old 07-05-2016, 03:03 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,292
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718
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.
 
Old 07-05-2016, 03:11 AM   #3
jnihil
Member
 
Registered: Dec 2012
Location: inside the matrix
Distribution: Debian, Xubuntu, Gentoo, Antergos
Posts: 90

Rep: Reputation: 27
Quote:
Originally Posted by Turbocapitalist View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nslookup error - ;; connection timed out; no servers could be reached gauravgoel1989 Linux - Networking 12 08-26-2014 11:59 AM
sftp-server connection from windows7 to linux machine gajananh999 Linux - Networking 36 10-11-2012 12:57 AM
DNS Error ;; Connection timed out ; no servers could be reached pooriya Linux - Networking 9 10-11-2009 07:16 AM
SFTP servers? hotrodowner Linux - Networking 5 10-19-2002 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration