Subject: Successfully Implemented Connecting to SFTP site through Lotus Notes.
I Successfully Implemented connecting to SFTP site through Lotus Notes.1)Earlier I am using the windows systems calls in lotus notes for connecting to the ftp site. Now Client asked us he want to transfer the files to the sftp site in a secure fashion.FTP is not secure way to transfer the files when compared to the SFTP.
2)In what way we are connecting to sftp site through lotus notes is explained below.
3)If you want to connect to sftp site through WS_SFTP Pro software . giving user id and password and sftp site name through GUI with the WS_SFTP Pro software . you are able to connect to sftp site.
4)we are not connecting to SFTP site by the above way.
5)We are connecting to sftp site in the command mode of the WS_SFTP Pro software and creating textfile with the scripts for connecting to the sftp site.
After creating the Scripts the file name has to be saved with the .scp.
In the Lotus Notes we are using the shell method for invoking the scripts for connecting to the sftp site.which is mentioned below.
Explanation: Take the path WS_SFTP Pro software is installed on your system. Take the complete path till up to ftpscrpt.com
in my System WS_SFTP Pro s/w is installed in the path which is mentioned below.
Eg: c:\Program Files \WS_SFTP\Ftpscrpt.com
- We are using the below script in the shell for connecting to sftp site
c:\Program Files \WS_SFTP\Ftpscrpt.com -f
In the above script filepath means the path where you saved the .scp file.
EG: I saved the .scp file in the path like: c:\ftp.scp
the script looks like:
c:\Program Files \WS_SFTP\Ftpscrpt.com -f C:\ftp.scp
- In the lotus notes I am using shell method for connecting to the sftp site . how I am using which is mentioned below.
retval=shell(cmdstr)
Here,
cmdstr=“c:\Program Files \WS_SFTP\Ftpscrpt.com -f C:\ftp.scp”
by using the above shell command we are connecting to the sftp site.
- The ftp.scp script contains the scripts which are mentioned below.
ONERROR EXIT
LOG
AUTH SSL 1 USER 0
USER
PASS
CONNECT
mput < complete file path in your source system.your txt file has to transfer> < destination path on the remote system where your file has to save with file name>
CLOSE
In the above way I implemented connecting to SFTP site through Lotus Notes.
I contacted so many people everyone told they dont know abt this. Finally with my effort I completed this Implementation in Lotus Notes.
My Contact Details are mentioned below.
CH T Ranjit Kumar
RanjitKumar1235@gmail.com
" You Never Fail Until You Stop Trying".