SSH Connection object failing - FTP object works

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



SSH Connection object failing - FTP object worksExpand / Collapse
Author
Message
Posted 4/21/2008 6:25:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/22/2008 4:40:29 PM
Posts: 2, Visits: 12
I have a test program that is trying to make an SSH connection:

bool pbVal = false;

WsftpApiClass api = new WsftpApiClass();

// WsftpConnection conn = api.CreateConnection(tbURL.Text, tbUID.Text, tbPWD.Text, 2, 21); --- FTP works

WsftpConnection conn = api.CreateConnection(tbURL.Text, tbUID.Text, tbPWD.Text, 4, 22); --- SFTP doesnt

pbVal = conn.PutFile("",tbFileName.Text,".","tada.wav",0,0);

MessageBox.Show(pbVal.ToString());

Using the WSFTP client with SSH from the same workstation I am able to connect successfully.

Second question:

I found this "WsftpApiClass" class in the forums but nothing in the doc, object model, etc. it was "WsftpApi". Both seem to work. Any details?

 

Thanks. Larry.

 

Post #43057
Posted 4/21/2008 7:10:13 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/22/2008 4:40:29 PM
Posts: 2, Visits: 12
The logs on the server show that it getting a permission denied error but was trying to use port 21 every time it failed!?

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?

LK

Post #43060
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 7:23pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 10 queries. Compression Enabled.