Error using command line

Advertisement

pszajt
Joined:
Posts:
1
Location:
Winnipeg

Error using command line

Hi,
I'm new on this forum and using winscp.
I'm trying to automate a copy between a windows box and a Unix server.
I guess I'm missing something.
I typed the following command on my Windows box:
winscp scp://root@server_name
and received the following messages:
Searching for host...
Connecting to host...
Authenticating...
Using username "root".
Using keyboard-interactive authentication.
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Connection has been unexpectedly closed. Server sent command exit status 1.
Error detecting variable containing return code of last command.


and that's it.
Any ideas?

Thanks in advance,

Pablo

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
37,220
Location:
Prague, Czechia

Re: Error using command line

This typically happens when the SSH server cannot run the shell. Either because it cannot find it or more commonly, because you are not allowed to do so. Check the server's log for more details.

Reply with quote

Guest

Re: Error using command line

Thanks for your answer. I've changed the way I was running the command. Now, I've created a script that worked perfectly.
I'm very happy with it. WINSCP will very useful for me.

Thanks,

Pablo Szajt

Reply with quote

sobreiro
Guest

Re: Error using command line

Hi,

What was the change? .. I am facing same problem.. can you help me?

Anonymous wrote:

Thanks for your answer. I've changed the way I was running the command. Now, I've created a script that worked perfectly.
I'm very happy with it. WINSCP will very useful for me.

Thanks,

Pablo Szajt

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum