Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

External SFTP monitor

Hi,

How can i configure external SFTP monitor on LTM?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Please follow my question on the same topic - It should have most of the details you seek. Feel free to ask additional questions if needed!

https://devcentral.f5.com/questions/sftp-external-monitor-fails-but-manual-script-execution-succeeds-55029

0
Comments on this Answer
Comment made 2 months ago by b.kodan 57

Thanks for the quick update. Went through the link and i have couple of queris; 1. How do we authenticate the user'sftpMonitor' which is mentioned in the sftp monitor script. 2. What are the commands added in the batch file 'sftpmonitor.input'. 3. Assume user 'sftpmonitor' has to be created in both LTM as well SFTP server?

0
Comment made 2 months ago by jpeterson6 180
  1. The best source of info that helped me as to how to authenticate without a password is here: http://www.jscape.com/blog/setting-up-sftp-public-key-authentication-command-line

  2. The commands in the input file are only 'dir' and 'bye'. The grep in the script (for 'IB') is just pulling out one of the subdirectories/folders that show up in stdout when the 'dir' command is executed.

  3. The user sftpMonitor does not need to be created on LTM, just the SFTP server. The public key is attached to that username in the servers' user profile (details in link on #1)

0
Comment made 2 months ago by b.kodan 57

Thank you so much.

So you have created 'sftpMonitor' and '.ssh' folder undere home?

As per the document, public and private key has to be created under '/home/user/.ssh'.

Please correct me if i am wrong?

0
Comment made 2 months ago by jpeterson6 180

That is my understanding as well, but I had no control on the server configuration unfortunately; I forwarded the same link to the server teams and they got it working on their end.

Also just to clarify one thing, the user 'sftpMonitor' is not a hard requirement, it's just the username we used in our environment :)

0
Comment made 2 months ago by b.kodan 57

I got it. Did you create '/Home/sftpMonitor/.ssh' folder in LTM? And generate private + public key using the command ssh-keygen ?(Step 1 and 2 in the document)

You have mentioned in the prvious comment that 'user sftpMonitor does not need to be created on LTM'. So did you manually created the folder '/Home/sftpMonitor/.ssh' to store private + pubklic key?

0