<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH.Net compiler error in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124614#M54378</link>
    <description>&lt;P&gt;Below code will list files from SFTP to collection, you have to specify username , password , host and port number&lt;BR /&gt;note: below xml code is an action page from object. you can copy this paste directly in object, it will create new page with name called List Files.&lt;/P&gt;&lt;P&gt;here is the code option page, once you paste that DLL in blueprism automate folder, add below name spaces&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveed_raza_0-1769774932250.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41997i8290B5B66490D027/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="naveed_raza_0-1769774932250.png" alt="naveed_raza_0-1769774932250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;all these actions you can do&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveed_raza_1-1769774972181.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41998i5B6ED4CC3048793A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="naveed_raza_1-1769774972181.png" alt="naveed_raza_1-1769774972181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;process name="__selection__RPA - Utility - SFTP" type="object"&amp;gt;
  &amp;lt;subsheet subsheetid="7072573e-ce65-428e-b6d8-d0b802ccf618" type="Normal" published="True"&amp;gt;
    &amp;lt;name&amp;gt;List Files&amp;lt;/name&amp;gt;
    &amp;lt;view&amp;gt;
      &amp;lt;camerax&amp;gt;0&amp;lt;/camerax&amp;gt;
      &amp;lt;cameray&amp;gt;7&amp;lt;/cameray&amp;gt;
      &amp;lt;zoom version="2"&amp;gt;1.25&amp;lt;/zoom&amp;gt;
    &amp;lt;/view&amp;gt;
  &amp;lt;/subsheet&amp;gt;
  &amp;lt;stage stageid="4636b57e-91ad-47c7-81e5-b4a3bd7d55c6" name="List Files" type="SubSheetInfo"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;Set Variables  - call me first&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="-195" y="-105" w="150" h="90" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="902ae425-a39a-44b0-aba7-2b79c266859e" name="Start" type="Start"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;Execute's command on remote server using SSH&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="75" y="-105" /&amp;gt;
    &amp;lt;inputs&amp;gt;
      &amp;lt;input type="text" name="Host" narrative="Hostname or IP address of the remote server" stage="Host" /&amp;gt;
      &amp;lt;input type="text" name="Username" narrative="Username for the remote server login" stage="Username" /&amp;gt;
      &amp;lt;input type="password" name="Password" narrative="Password for the remote server login" stage="Password" /&amp;gt;
      &amp;lt;input type="text" name="Private Key FilePath" narrative="Private Key FilePath stored locally" stage="Private Key FilePath" /&amp;gt;
      &amp;lt;input type="number" name="Port" narrative="sepecial port, if needed. Defaults to 22" stage="Port" /&amp;gt;
      &amp;lt;input type="text" name="Remote Directory" narrative="Directory path on remote server" stage="remoteDirectory" /&amp;gt;
    &amp;lt;/inputs&amp;gt;
    &amp;lt;onsuccess&amp;gt;c9ea7f46-494a-45ba-9773-d9dc82fa0626&amp;lt;/onsuccess&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="95a4afa9-0a1c-440d-8673-d5dc958b0db9" name="End" type="End"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;End of action&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="75" y="45" /&amp;gt;
    &amp;lt;outputs&amp;gt;
      &amp;lt;output type="flag" name="Success" stage="Success" /&amp;gt;
      &amp;lt;output type="text" name="ErrorMessage" stage="ErrorMessage" /&amp;gt;
      &amp;lt;output type="collection" name="fileList" stage="fileList" /&amp;gt;
      &amp;lt;output type="number" name="fileListCount" stage="fileListCount" /&amp;gt;
    &amp;lt;/outputs&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="3e0167a4-5a08-492d-8e3c-f215f91ff344" name="Input Data Items" type="Block"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-300" y="30" w="210" h="60" /&amp;gt;
    &amp;lt;font family="Segoe UI" size="10" style="Regular" color="FFCC00" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="25de69a1-76d5-4047-b3a9-176970bb089a" name="Local Data Items" type="Block"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-300" y="-45" w="210" h="60" /&amp;gt;
    &amp;lt;font family="Segoe UI" size="10" style="Regular" color="339966" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="18867604-cb05-4d55-8a4b-7b85f5e46388" name="Output Data Items" type="Block"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-300" y="105" w="210" h="105" /&amp;gt;
    &amp;lt;font family="Segoe UI" size="10" style="Regular" color="993300" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="c9ea7f46-494a-45ba-9773-d9dc82fa0626" name="List Files" type="Code"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;Deletes file from remote directory&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="75" y="-30" /&amp;gt;
    &amp;lt;inputs&amp;gt;
      &amp;lt;input type="text" name="Username" expr="[Username]" /&amp;gt;
      &amp;lt;input type="text" name="Host" expr="[Host]" /&amp;gt;
      &amp;lt;input type="text" name="keyLocation" expr="[Private Key FilePath]" /&amp;gt;
      &amp;lt;input type="password" name="Password" expr="[Password]" /&amp;gt;
      &amp;lt;input type="number" name="Port" expr="[Port]" /&amp;gt;
      &amp;lt;input type="text" name="remoteDirectory" expr="[remoteDirectory]" /&amp;gt;
    &amp;lt;/inputs&amp;gt;
    &amp;lt;outputs&amp;gt;
      &amp;lt;output type="flag" name="Success" stage="Success" /&amp;gt;
      &amp;lt;output type="text" name="ErrorMessage" stage="ErrorMessage" /&amp;gt;
      &amp;lt;output type="collection" name="fileList" stage="fileList" /&amp;gt;
      &amp;lt;output type="number" name="fileListCount" stage="fileListCount" /&amp;gt;
      &amp;lt;output type="collection" name="dFileList" stage="dFileList" /&amp;gt;
    &amp;lt;/outputs&amp;gt;
    &amp;lt;onsuccess&amp;gt;95a4afa9-0a1c-440d-8673-d5dc958b0db9&amp;lt;/onsuccess&amp;gt;
    &amp;lt;code&amp;gt;&amp;lt;![CDATA[
Dim sftpClient as SftpClient = Nothing
Dim files As New DataTable()

Dim dt as New DataTable()
dt.Columns.Add("Name")
dt.Columns.Add("FullName")
dt.Columns.Add("Size")
dt.Columns.Add("LastWriteTime")

Try
	Success = True
	ErrorMessage = ""

    Dim connectionInfo As ConnectionInfo
    connectionInfo = getConnInfo(Host, Port, Username, Password, keyLocation)
    sftpClient = New SftpClient(connectionInfo)
    sftpClient.Connect()

	files = listFiles(sftpClient, remoteDirectory)

	fileList = files
	fileListCount = files.Rows.Count

	dim dFiles = sftpClient.ListDirectory(remoteDirectory)
	for each f in dFiles
		if f.Name &amp;lt;&amp;gt; "." AndAlso f.Name &amp;lt;&amp;gt; ".." then
			dt.Rows.Add(f.Name, f.FullName, f.Length.ToString(), f.LastWriteTime.ToString())
		end if
	next

	dFileList = dt

    sftpClient.Disconnect()

	
	

Catch Ex As Exception
	Success = false
    ErrorMessage = Ex.Message

End Try
]]&amp;gt;&amp;lt;/code&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="f044e792-a0a3-48ae-9ecb-0bb5daca84c9" name="ErrorMessage" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-150" y="135" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;text&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue /&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="16b7c632-6b23-450f-9423-917154f20971" name="Success" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-240" y="135" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;flag&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue /&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="9fd2b475-5c8f-41dd-a3af-f290a642a511" name="remoteDirectory" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-210" y="60" w="120" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;text&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue xml:space="preserve"&amp;gt;/yourmftservername/yourfoldername&amp;lt;/initialvalue&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="f89c1f28-9d99-4e4b-bbf1-01ad7d494065" name="fileList" type="Collection"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-240" y="180" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;collection&amp;lt;/datatype&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="14fa74aa-28ca-4325-ae56-cf25483a4b88" name="fileListCount" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-150" y="180" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;number&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue&amp;gt;0&amp;lt;/initialvalue&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="e2c659cc-ac66-4603-b0bb-5925ad5559b9" name="dFileList" type="Collection"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="150" y="-30" /&amp;gt;
    &amp;lt;datatype&amp;gt;collection&amp;lt;/datatype&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
&amp;lt;/process&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jan 2026 12:15:41 GMT</pubDate>
    <dc:creator>naveed_raza</dc:creator>
    <dc:date>2026-01-30T12:15:41Z</dc:date>
    <item>
      <title>SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/100756#M47928</link>
      <description>Hello all, I am using the SSH.NET VBO and keep running into a compiler error that is preventing me from running the object. My goal is to list items from an SFTP source. The error reads as follows:&lt;BR /&gt;&lt;BR /&gt;Page: Initialise&lt;BR /&gt;Stage: Stage1&lt;BR /&gt;Type: Error&lt;BR /&gt;Action: Validate&lt;BR /&gt;Description: Compiler error at top section line -13: Metadata file 'Renci.SshNet.dll' could not be found&lt;BR /&gt;Repairable: No&lt;BR /&gt;&lt;BR /&gt;I am new to blue prism development and any help would be appreciated.&amp;nbsp;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 28 Apr 2022 19:35:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/100756#M47928</guid>
      <dc:creator>WilliamHillman</dc:creator>
      <dc:date>2022-04-28T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/100757#M47929</link>
      <description>I'm not familiar with that VBO but my guess is that it contains code stages and a reference to that DLL file. The reference is telling BP to find the DLL on the local machine and the error is saying that BP can't find it. &lt;BR /&gt;&lt;BR /&gt;Potential reasons for this could be - the file is not on the machine, the file is on the machine but not on the specified path, the path has not been specified and BP cannot find the file in the 'usual' locations (meaning the BP install folder or folders in the Windows PATH variable).</description>
      <pubDate>Fri, 29 Apr 2022 08:49:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/100757#M47929</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-04-29T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/100758#M47930</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24234"&gt;@WilliamHillman&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Extract the attached zip file and place the dll at ​C:\Program Files\Blue Prism Limited\Blue Prism Automate&lt;BR /&gt;The VBO has a dependency on Renci.SshNet.dll. The steps to get the dll is also included in the User Guide.</description>
      <pubDate>Fri, 29 Apr 2022 09:04:48 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/100758#M47930</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2022-04-29T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124607#M54376</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24234"&gt;@WilliamHillman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Were you able to resolve this issue?&lt;/P&gt;&lt;P&gt;I am trying to use this VBO, and I am facing this same issue.&lt;/P&gt;&lt;P&gt;If you have any suggestions, please let me know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varad&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 10:12:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124607#M54376</guid>
      <dc:creator>Varad_Kale</dc:creator>
      <dc:date>2026-01-30T10:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124611#M54377</link>
      <description>&lt;P&gt;i already built re-usable object to work with SFTP , i can share the entire object, you have to paste that DLL in Blueprism automate folder&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 12:02:44 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124611#M54377</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-01-30T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124614#M54378</link>
      <description>&lt;P&gt;Below code will list files from SFTP to collection, you have to specify username , password , host and port number&lt;BR /&gt;note: below xml code is an action page from object. you can copy this paste directly in object, it will create new page with name called List Files.&lt;/P&gt;&lt;P&gt;here is the code option page, once you paste that DLL in blueprism automate folder, add below name spaces&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveed_raza_0-1769774932250.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41997i8290B5B66490D027/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="naveed_raza_0-1769774932250.png" alt="naveed_raza_0-1769774932250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;all these actions you can do&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveed_raza_1-1769774972181.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41998i5B6ED4CC3048793A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="naveed_raza_1-1769774972181.png" alt="naveed_raza_1-1769774972181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;process name="__selection__RPA - Utility - SFTP" type="object"&amp;gt;
  &amp;lt;subsheet subsheetid="7072573e-ce65-428e-b6d8-d0b802ccf618" type="Normal" published="True"&amp;gt;
    &amp;lt;name&amp;gt;List Files&amp;lt;/name&amp;gt;
    &amp;lt;view&amp;gt;
      &amp;lt;camerax&amp;gt;0&amp;lt;/camerax&amp;gt;
      &amp;lt;cameray&amp;gt;7&amp;lt;/cameray&amp;gt;
      &amp;lt;zoom version="2"&amp;gt;1.25&amp;lt;/zoom&amp;gt;
    &amp;lt;/view&amp;gt;
  &amp;lt;/subsheet&amp;gt;
  &amp;lt;stage stageid="4636b57e-91ad-47c7-81e5-b4a3bd7d55c6" name="List Files" type="SubSheetInfo"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;Set Variables  - call me first&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="-195" y="-105" w="150" h="90" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="902ae425-a39a-44b0-aba7-2b79c266859e" name="Start" type="Start"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;Execute's command on remote server using SSH&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="75" y="-105" /&amp;gt;
    &amp;lt;inputs&amp;gt;
      &amp;lt;input type="text" name="Host" narrative="Hostname or IP address of the remote server" stage="Host" /&amp;gt;
      &amp;lt;input type="text" name="Username" narrative="Username for the remote server login" stage="Username" /&amp;gt;
      &amp;lt;input type="password" name="Password" narrative="Password for the remote server login" stage="Password" /&amp;gt;
      &amp;lt;input type="text" name="Private Key FilePath" narrative="Private Key FilePath stored locally" stage="Private Key FilePath" /&amp;gt;
      &amp;lt;input type="number" name="Port" narrative="sepecial port, if needed. Defaults to 22" stage="Port" /&amp;gt;
      &amp;lt;input type="text" name="Remote Directory" narrative="Directory path on remote server" stage="remoteDirectory" /&amp;gt;
    &amp;lt;/inputs&amp;gt;
    &amp;lt;onsuccess&amp;gt;c9ea7f46-494a-45ba-9773-d9dc82fa0626&amp;lt;/onsuccess&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="95a4afa9-0a1c-440d-8673-d5dc958b0db9" name="End" type="End"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;End of action&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="75" y="45" /&amp;gt;
    &amp;lt;outputs&amp;gt;
      &amp;lt;output type="flag" name="Success" stage="Success" /&amp;gt;
      &amp;lt;output type="text" name="ErrorMessage" stage="ErrorMessage" /&amp;gt;
      &amp;lt;output type="collection" name="fileList" stage="fileList" /&amp;gt;
      &amp;lt;output type="number" name="fileListCount" stage="fileListCount" /&amp;gt;
    &amp;lt;/outputs&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="3e0167a4-5a08-492d-8e3c-f215f91ff344" name="Input Data Items" type="Block"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-300" y="30" w="210" h="60" /&amp;gt;
    &amp;lt;font family="Segoe UI" size="10" style="Regular" color="FFCC00" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="25de69a1-76d5-4047-b3a9-176970bb089a" name="Local Data Items" type="Block"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-300" y="-45" w="210" h="60" /&amp;gt;
    &amp;lt;font family="Segoe UI" size="10" style="Regular" color="339966" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="18867604-cb05-4d55-8a4b-7b85f5e46388" name="Output Data Items" type="Block"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-300" y="105" w="210" h="105" /&amp;gt;
    &amp;lt;font family="Segoe UI" size="10" style="Regular" color="993300" /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="c9ea7f46-494a-45ba-9773-d9dc82fa0626" name="List Files" type="Code"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;narrative&amp;gt;Deletes file from remote directory&amp;lt;/narrative&amp;gt;
    &amp;lt;display x="75" y="-30" /&amp;gt;
    &amp;lt;inputs&amp;gt;
      &amp;lt;input type="text" name="Username" expr="[Username]" /&amp;gt;
      &amp;lt;input type="text" name="Host" expr="[Host]" /&amp;gt;
      &amp;lt;input type="text" name="keyLocation" expr="[Private Key FilePath]" /&amp;gt;
      &amp;lt;input type="password" name="Password" expr="[Password]" /&amp;gt;
      &amp;lt;input type="number" name="Port" expr="[Port]" /&amp;gt;
      &amp;lt;input type="text" name="remoteDirectory" expr="[remoteDirectory]" /&amp;gt;
    &amp;lt;/inputs&amp;gt;
    &amp;lt;outputs&amp;gt;
      &amp;lt;output type="flag" name="Success" stage="Success" /&amp;gt;
      &amp;lt;output type="text" name="ErrorMessage" stage="ErrorMessage" /&amp;gt;
      &amp;lt;output type="collection" name="fileList" stage="fileList" /&amp;gt;
      &amp;lt;output type="number" name="fileListCount" stage="fileListCount" /&amp;gt;
      &amp;lt;output type="collection" name="dFileList" stage="dFileList" /&amp;gt;
    &amp;lt;/outputs&amp;gt;
    &amp;lt;onsuccess&amp;gt;95a4afa9-0a1c-440d-8673-d5dc958b0db9&amp;lt;/onsuccess&amp;gt;
    &amp;lt;code&amp;gt;&amp;lt;![CDATA[
Dim sftpClient as SftpClient = Nothing
Dim files As New DataTable()

Dim dt as New DataTable()
dt.Columns.Add("Name")
dt.Columns.Add("FullName")
dt.Columns.Add("Size")
dt.Columns.Add("LastWriteTime")

Try
	Success = True
	ErrorMessage = ""

    Dim connectionInfo As ConnectionInfo
    connectionInfo = getConnInfo(Host, Port, Username, Password, keyLocation)
    sftpClient = New SftpClient(connectionInfo)
    sftpClient.Connect()

	files = listFiles(sftpClient, remoteDirectory)

	fileList = files
	fileListCount = files.Rows.Count

	dim dFiles = sftpClient.ListDirectory(remoteDirectory)
	for each f in dFiles
		if f.Name &amp;lt;&amp;gt; "." AndAlso f.Name &amp;lt;&amp;gt; ".." then
			dt.Rows.Add(f.Name, f.FullName, f.Length.ToString(), f.LastWriteTime.ToString())
		end if
	next

	dFileList = dt

    sftpClient.Disconnect()

	
	

Catch Ex As Exception
	Success = false
    ErrorMessage = Ex.Message

End Try
]]&amp;gt;&amp;lt;/code&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="f044e792-a0a3-48ae-9ecb-0bb5daca84c9" name="ErrorMessage" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-150" y="135" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;text&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue /&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="16b7c632-6b23-450f-9423-917154f20971" name="Success" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-240" y="135" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;flag&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue /&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="9fd2b475-5c8f-41dd-a3af-f290a642a511" name="remoteDirectory" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-210" y="60" w="120" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;text&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue xml:space="preserve"&amp;gt;/yourmftservername/yourfoldername&amp;lt;/initialvalue&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="f89c1f28-9d99-4e4b-bbf1-01ad7d494065" name="fileList" type="Collection"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-240" y="180" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;collection&amp;lt;/datatype&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="14fa74aa-28ca-4325-ae56-cf25483a4b88" name="fileListCount" type="Data"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="-150" y="180" w="90" h="30" /&amp;gt;
    &amp;lt;datatype&amp;gt;number&amp;lt;/datatype&amp;gt;
    &amp;lt;initialvalue&amp;gt;0&amp;lt;/initialvalue&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
  &amp;lt;stage stageid="e2c659cc-ac66-4603-b0bb-5925ad5559b9" name="dFileList" type="Collection"&amp;gt;
    &amp;lt;subsheetid&amp;gt;7072573e-ce65-428e-b6d8-d0b802ccf618&amp;lt;/subsheetid&amp;gt;
    &amp;lt;loginhibit onsuccess="true" /&amp;gt;
    &amp;lt;display x="150" y="-30" /&amp;gt;
    &amp;lt;datatype&amp;gt;collection&amp;lt;/datatype&amp;gt;
    &amp;lt;private /&amp;gt;
    &amp;lt;alwaysinit /&amp;gt;
  &amp;lt;/stage&amp;gt;
&amp;lt;/process&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 12:15:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124614#M54378</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-01-30T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: SSH.Net compiler error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124616#M54379</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveed_raza_2-1769775531880.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41999iE3499CDD36B7A722/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="naveed_raza_2-1769775531880.png" alt="naveed_raza_2-1769775531880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 12:19:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SSH-Net-compiler-error/m-p/124616#M54379</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-01-30T12:19:03Z</dc:date>
    </item>
  </channel>
</rss>

