Topic "Server refused to start a shell/command"

Author Message
Darryl777
[View user's profile]

Joined: 2016-02-15
Posts: 2
Location: Birmingham, AL
Hey Guys,

Newbie to WinSCP and ftp in general. I'm getting the error above when I try to change directory using Session.ExecuteCommand("CWD reports"); Using Protocol.Sftp

Thanks,

Darryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
First, the CWD is FTP command, it can hardly work with a shell session that SFTP connection opens to execute an connect.

In shell you use cd.

But your server does not allow you to open the shell session anyway.

What are you trying to do?
Darryl777
[View user's profile]

Joined: 2016-02-15
Posts: 2
Location: Birmingham, AL
prikryl wrote:
First, the CWD is FTP command, it can hardly work with a shell session that SFTP connection opens to execute an connect.

In shell you use cd.

But your server does not allow you to open the shell session anyway.

What are you trying to do?


Thanks for the reply. Our vendor is moving from ftp to sftp and we were attempting to modify the least amount of code as possible. Our old stuff relied on using commands. Did not realize the inherent differences in the two technologies. We got it working in sftp. Thanks!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License