CWDis FTP command, it can hardly work with a shell session that SFTP connection opens to execute an connect.
In shell you use
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!