Topic "SCP into Juniper router"

Author Message


Is it possible to login into a Juniper router (BSD based) and SCP a file from it? I have tried to and no luck. I get the following error:

Can't detect command return code.

I looked at the logs and I see that the connection is successfull, however when you log into the router you are not at the shell prompt, instead you are at the CLI and most manually start the shell. So how can I change the prompt that WinSCP receives from the router? Thanks.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26905
Location: Prague, Czechia
Please post a log file. Or try SFTP instead SCP (with 3.0 beta only).
Martin Prikryl


We ran into this same issue. For those in the future, here is the fix:

<invalid hyperlink removed by admin>

It tells you how to configure the options in the Advanced Options menu to support JUNOS devices.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License