0

I'm trying to download files from an old Cisco C3560G to my PC with PuTTY SCP but I get this error : FATAL ERROR: Received unexpected end-of-file from server.

On the Cisco C3560G I have typed the commands ip ssh version 2 and ip scp server enable.

Here the output of pscp -v :

P:\> pscp -v admin@PAN-MGMT-01:PAN-MGMT-01_autoconfig-20230818.txt .
Looking up host "PAN-MGMT-01" for SSH connection
Connecting to 10.14.16.15 port 22
We claim version: SSH-2.0-PuTTY_Release_0.78
Connected to 10.14.16.15
Remote version: SSH-2.0-Cisco-1.25
We believe remote version has SSH-1 ignore bug
We believe remote version needs a plain SSH-1 password
We believe remote version can't handle SSH-1 RSA authentication
Using SSH protocol version 2
No GSSAPI security context available
The first key-exchange algorithm supported by the server is
diffie-hellman-group1-sha1, which is below the configured warning threshold.
Continue with connection? (y/n) y
Doing Diffie-Hellman key exchange using 1024-bit modulus and hash SHA-1 (SHA-NI accelerated) with standard group "group1"
Host key fingerprint is:
ssh-rsa 1024 SHA256:v9/l/D7QUoMY8O4u/FNEqzdUtH/ls3CXl3yw4cf7u/M
Initialised AES-256 CBC (AES-NI accelerated) outbound encryption
Initialised HMAC-SHA-1 (SHA-NI accelerated) outbound MAC algorithm
Initialised AES-256 CBC (AES-NI accelerated) inbound encryption
Initialised HMAC-SHA-1 (SHA-NI accelerated) inbound MAC algorithm
Using username "admin".
Attempting keyboard-interactive authentication
Keyboard-interactive authentication prompts from server:
| Password:
End of keyboard-interactive prompts from server
Access granted
Opening main session channel
Opened main channel
Started a shell/command
Using SFTP
Connected to PAN-MGMT-01.ORION.lan
Session sent command exit status 0
FATAL ERROR: Received unexpected end-of-file from server

P:\>

Can you help ?

SebMa
  • 1,573
  • 2
  • 19
  • 25
  • 3
    `Using SFTP` indicates your `pscp` tries to use SFTP, not SCP (compare [this answer](https://superuser.com/a/1733992/432690)). Maybe the server does not support SFTP. What if you force SCP by adding `-scp` as an option? – Kamil Maciorowski Aug 18 '23 at 18:32

0 Answers0