No matching cipher found

When doing ssh or scp you get the following error:

no matching cipher found: client aes256-cbc,aes192-cbc,blowfish-cbc,cast128-cbc,aes128-cbc,3des-cbc server chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr

You can fix with, but you've removed security
$ scp -c none other-stuff-here
$ ssh -c none username@hostname

Refer: http://steronius.blogspot.com/2014/10/ssh-no-matching-cipher-found.html

[jboss1@haldevjbs13 /tmp/mongo-backup/export-testcms-20160709]$ less /home/jboss1/.ssh/known_hosts.old

[jboss1@haldevjbs13 /tmp/mongo-backup/export-testcms-20160709]$ less /home/jboss1/.ssh/known_hosts

Secure Copy scp Syntax

Refer: https://phoenixnap.com/kb/linux-scp-command

Copy Files from Remote with Wildcard

scp x_ubuntu1804_ci:"/home/mruckman/crontab/*.zip" .

Single File

scp /your/source/file-to-copy.zip  xxx@target.server.com:/tmp/file-to-copy.zip

Single File Copied from Server

scp x_ubuntu1804_ci:/home/mruckman/sos-api-deployment-analysis/server_report.xls ~/Desktop/

Recursive Copy

scp -r user@server1:/var/www/html/ /var/www/ - it doubled created the target folder on RHEL server

or

scp -r user@server1:/var/www/html/ user@server2:/var/www/html/ - this has been untested

scp Setup

If you are trying to run an scp command and you keep getting a drop connection, then...

Secure Copy - scp - When setting up secure copy between jBoss and the target server, get the keys in place in the known_hosts file and the like, and then first connect to the target server via ssh, and then do a test ssh command.  If that works, then you can continue with your testing and final rollout.

SSH For SCP Fix

From: Turner, Andrew (HAL)
Sent: Tuesday, January 03, 2012 11:36 AM
To: Lee, Scott (HAL); Hoggard, Chad (HAL); Hofsetz, Therron (HAL); Siwek, John (HAL)
Cc: Mounagurusamy, Jayakumar (HAL); Harris, Tyrone (HAL); Augustine, Anila (HAL); Ruckman, Maurice (HAL)
Subject: RE: FAILURE FAILURE FAILURE Environment - prod : Error -- CC Applied Onboard Failed SCP For File WEBC20111229CC.txt

Here are my notes to fix the issue:

Open Dos Window

ntrights +r SeAssignPrimaryTokenPrivilege -u cyg_server ntrights +r SeCreateTokenPrivilege -u cyg_server

--restart CYGWIN sshd service using the following net stop sshd net start sshd

From: Turner, Andrew (HAL)
Sent: Thursday, February 02, 2012 10:06 AM
To: Siwek, John (HAL); Hoggard, Chad (HAL); Lee, Scott (HAL); Ruckman, Maurice (HAL); Harris, Tyrone (HAL)
Cc: Mounagurusamy, Jayakumar (HAL); Augustine, Anila (HAL); Hofsetz, Therron (HAL)
Subject: RE: FAILURE FAILURE FAILURE Environment - prod : Error -- CC Applied Onboard Failed SCP For File EDBC20120124CC.txt

Hi John

The user name is cyg_server

This is a local user on the HALRES01 box that runs the SSHD service.