SCP not working with MacOS 13 Ventura?

SCP not working with MacOS 13 Ventura?

You have upgraded your MacOS to version 13 (Ventura) and a simple SCP to a network device does not work anymore?
In fact, this is normal, here is the reason and how to solve this problem.

The symptom

The SCP command that you have already done thousands of times to upload or download a file from/to a network device gives an error, for example:

~ scp nxos64-cs.10.2.4.M.bin admin@myswitch:bootflash:///
(admin@myswitch) Password:
subsystem request failed on channel 0
scp: Connection closed

 

The reason

The SCP protocol has been deprecated in OpenSSH 9.0 which Apple provides in Ventura.

This release switches scp(1) from using the legacy scp/rcp protocol to using the SFTP protocol by default

More details here: https://www.openssh.com/txt/release-9.0

 

The solution

The solution is given on this same page, you must use the -O flag:

In case of incompatibility, the scp(1) client may be instructed to use the legacy scp/rcp using the -O flag.

For example:

~ scp -O nxos64-cs.10.2.4.M.bin admin@myswitch:bootflash:///

 

Other posts on the subject

If you enjoyed this article, check out my other posts on Linux networking tips and tricks:

  1. The ip and nmcli commands
  2. The mtr command
  3. The ss and netstat commands
  4. The curl command
  5. tcpdump

 


Did you like this article? Please share it…

4 Comments

  1. Serik Perez

    Thankss, you really saved my day!!

Leave a Reply

Your email address will not be published. Required fields are marked *