ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Access Files on Ubuntu Machine from windows in C#<p>Refer the below links.</p> <ul style="list-style-type: undefined;"> <li><a href=""></a></li> <li><a href=""></a></li> </ul> <p>&nbsp;</p> <p>&nbsp;</p>, 11 Jul 2016 02:25:21 GMTAccess Files on Ubuntu Machine from windows in C#<p>Dear Dharmendr,</p> <p>I have already gone through the links before and are not much of a use in my case.</p> <p>But above all i really appreciate your help &amp; support.</p> <p>Thanks.</p> <p>&nbsp;</p>, 13 Jul 2016 06:57:38 GMTAccess Files on Ubuntu Machine from windows in C#<p>Dear All,</p> <p>&nbsp;</p> <p>I have achieved the same by using SFTP instead of FTP .</p> <p>I dont know why it was not happening using FTP .</p> <p>But through SFTP I achieved it.</p> <p>Thanks.</p>, 25 Jul 2016 06:01:23 GMTAccess Files on Ubuntu Machine from windows in C#<p>Hi <a class="username" rel="ShaibaazS">ShaibaazS</a>,</p> <p>As you have solved by your self, so please share the solution with us so this can be beneficial to other community members reading the thread.</p>, 25 Jul 2016 06:32:26 GMTAccess Files on Ubuntu Machine from windows in C#<p>Yes I will be posting the answer .</p> <p>For time being for whom ever who comes accross this situation</p> <ol style="list-style-type: undefined;"> <li>Configure a SFTP Server on Ubuntu Machine.</li> <li>In my case I have mapped Local IP to a Static IP for the Ubuntu machine by forwarding port "22" on&nbsp; my router. Port "22" is the default port for configuring SFTP Server.</li> <li>I have added "Renci.SshNet" reference from NuGet Packet Manager. For I have to add the following namesapces. <pre class="brush: csharp">using Renci.SshNet; using Renci.SshNet.Common; using Renci.SshNet.Sftp;</pre> </li> <li>Also I have referred to the follwing Link: <a href=""></a></li> <li>Please find the below Source Code for the same.</li> </ol> <pre class="brush: csharp">using System.IO; using Renci.SshNet; using Renci.SshNet.Common; using Renci.SshNet.Sftp; String Host = &#34;;; int Port = 22; String RemoteFileName = &#34;TheDataFile.txt&#34;; String LocalDestinationFilename = &#34;TheDataFile.txt&#34;; String Username = &#34;yourusername&#34;; String Password = &#34;yourpassword&#34;; using (var sftp = new SftpClient(Host, Port, Username, Password)) { sftp.Connect(); using (var file = File.OpenWrite(LocalDestinationFilename)) { sftp.DownloadFile(RemoteFileName, file); } sftp.Disconnect(); }</pre> <p>I hope this will help you.</p> <p>&nbsp;</p> <p>Thanks .</p> <p>&nbsp;</p>, 28 Jul 2016 00:10:01 GMT