Server refuse to start a shell/command using script.

Advertisement

justAnotherCoder
Guest

Server refuse to start a shell/command using script.

Hi.

I'm trying to transfer/delete files from Unix remote server to Windows. The process is executed via an Automation using SSIS (executed from Execute Process Task box), so the source of execution is WindowsServer. Everything goes great until it gets to open a session via script batch(script.txt):

echo
open scp://Unix_UserName:passUTF8HEXword@Unix.IP.Address.Number:Port -hostkey="ssh-rsa HostkeyNumber"
get -delete /UnixServerPath/File*.pdf \\WindowsServerPath\
exit

My log says "Access granted" but then gives "Server refuse to start a shell/command" error. I attached my log and manual test via CMD for reference. The IT dept in charge of the UnixServer says they gave me permissions for read/write/delete/copy/move/etc. But I still get the same error. If someone can point me to the right direction I appreciate it because I've been reading the documentation/blogs and tried a lot of possible solutions for weeks with no luck.
  • cmdError.JPG (44.88 KB, Private file)
Description: Test
  • WinSCP2.log (5.07 KB, Private file)
Description: log

Reply with quote

Advertisement

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

Re: Server refuse to start a shell/command using script.

But do you have a shell access? Can you login to that server using any SSH terminal client like PuTTY? Are you really supposed to use SCP protocol? Did you try SFTP? (sftp://)

Reply with quote

Advertisement

You can post new topics in this forum