﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Ipswitch Forums / WS_FTP Professional Software Development Kit / Ipswitch Products  / SSH Connection object failing - FTP object works / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Ipswitch Forums</description><link>http://forums.ipswitch.com/</link><webMaster>forums@ipswitch.com</webMaster><lastBuildDate>Thu, 21 Aug 2008 16:21:34 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSH Connection object failing - FTP object works</title><link>http://forums.ipswitch.com/Topic43057-9-1.aspx</link><description>The logs on the server show that it getting a permission denied error but was trying to use port 21 every time it failed!? &lt;/P&gt;&lt;P&gt;Is there a chance Im using an old version? The .dll shows as version 8.1.0.0 but it is dated 6/23/05?&lt;/P&gt;&lt;P&gt;LK</description><pubDate>Mon, 21 Apr 2008 19:10:13 GMT</pubDate><dc:creator>ljkrauss</dc:creator></item><item><title>SSH Connection object failing - FTP object works</title><link>http://forums.ipswitch.com/Topic43057-9-1.aspx</link><description>I have a test program that is trying to make an SSH connection:&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;FONT size=2&gt; pbVal = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;WsftpApiClass&lt;/FONT&gt;&lt;FONT size=2&gt; api = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;WsftpApiClass&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;P&gt;// WsftpConnection conn = api.CreateConnection(tbURL.Text, tbUID.Text, tbPWD.Text, 2, 21); --- FTP works &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;WsftpConnection&lt;/FONT&gt;&lt;FONT size=2&gt; conn = api.CreateConnection(tbURL.Text, tbUID.Text, tbPWD.Text, 4, 22); --- SFTP doesnt&lt;/P&gt;&lt;P&gt;pbVal = conn.PutFile(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;,tbFileName.Text,&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"."&lt;/FONT&gt;&lt;FONT size=2&gt;,&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"tada.wav"&lt;/FONT&gt;&lt;FONT size=2&gt;,0,0);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;MessageBox&lt;/FONT&gt;&lt;FONT size=2&gt;.Show(pbVal.ToString());&lt;/P&gt;&lt;P&gt;Using the WSFTP client with SSH from the same workstation I am able to connect successfully.&lt;/P&gt;&lt;P&gt;Second question:&lt;/P&gt;&lt;P&gt;I found this "&lt;FONT color=#2b91af&gt;WsftpApiClass" class in the forums but nothing in the doc, object model, etc. it was "WsftpApi". Both seem to work. Any details?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af&gt;Thanks. Larry.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 21 Apr 2008 18:25:15 GMT</pubDate><dc:creator>ljkrauss</dc:creator></item></channel></rss>