Forum Discussion
External SFTP monitor
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!
- b_kodan_313047Sep 13, 2017Nimbostratus
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?
- jpeterson6_1656Sep 13, 2017Nimbostratus
-
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
-
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.
-
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)
-
- b_kodan_313047Sep 13, 2017Nimbostratus
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?
- jpeterson6_1656Sep 13, 2017Nimbostratus
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 :)
- b_kodan_313047Sep 13, 2017Nimbostratus
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?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com