In this webinar, our experts showcase a variety of demo use cases of how different components of the...
For integrations between Microsoft Dynamics CRM and other systems (e.g. between CRM and ERP systems, Commerce Systems, custom systems, and even legacy main frame systems), the primary requirement is often to get or send data via FTP. However, FTP is plain text and insecure. For this reason, it is always best to use SFTP. So, let's talk about how you securely transfer your data utilizing Dot Net and SFTP.
Creating a connection to an SFTP server from Dot Net code is not easily done out of the box, but is easily done with a 3rd party DLL – SSH.net. In order to accomplish this you will need to download the SSH.Net Library from Codeplex at http://sshnet.codeplex.com/. After downloading library, you will need to build it and add the reference (Renci.SshNet.dll) to the project. Make sure to use the SftpClient class available in SSH.Net to connect to FTP Server using SFTP.
Steps To Connect to FTP Server Using SFTP:
The advantage of using SFTP is that your data is always kept secure while in transit. This is essential if dealing with anything confidential such as HIPPA data.
Your title should be "Connecting to SFTP server using an SFTP library". Regarding the SFTP library, there is another option at: http://www.componentpro.com/sftp.net/. It's not free.
Any ideas how to use renchi in order to connect to an FTP and not an SFTP ?
Hi - If using just ftp, you can use out of the box dot net. https://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest(v=vs.90).aspx
However, just ftp is plain text. All of your data, uid, and pwd is traversing the internet plain text. You don't have to be the NSA to get to this data.....any one in the middle can see it. We highly recommend only using sftp or ftps.
Thanks Joe for your reply. I was asking if that is the case, b/c my solution will consider both cases: clients using SFTP and clients using FTP, and none of the libraries can't handle both cases. So in my application I'm using both approachs: Renci for SFTP and FTPWebRequest for FTP.
Regards.
@alexfagundes:disqus can we connect CRM 2013 to a local private ftp server in order to host folders containing attachments( pictures,documents,videos) for multiple entities in CRM where each client has a specific folder in the local private ftp server ?
Does this work with CRM Online?
I used Renci.Sshnet V 1.0.0.0 Bids 2008 R2 its working fine. Same package I configured sql agent its getting fail due to timeout and i set timeout period 60 sec in my code. how to resolve this?
Does this work with CRM 2016 Online? I'm trying to hit a SFTP endpoint and get a CSV file.
Thanks!