Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Darryl777

Re: Server refused to start a shell/command

martin 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!
martin

Re: Server refused to start a shell/command

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

Server refused to start a shell/command

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