Topic "Error using command line"

Author Message
pszajt
[View user's profile]

Joined: 2008-01-23
Posts: 1
Location: Winnipeg
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Guest




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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read documentation for common reasons of getting this error and some resolution hints.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License