Server refused to start a shell/command

Advertisement

Darryl777
Joined:
Posts:
2
Location:
Birmingham, AL

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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?

Reply with quote

Darryl777
Joined:
Posts:
2
Location:
Birmingham, AL

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!

Reply with quote

Advertisement

You can post new topics in this forum