42
votes
Accepted
ssh Unable to negotiate: "no matching cipher found", is rejecting cbc
The -cbc algorithms have turned out to be vulnerable to an attack. As a result, up-to-date versions of OpenSSH will now reject those algorithms by default: for now, they are still available if you ...
29
votes
ssh Unable to negotiate: "no matching cipher found", is rejecting cbc
create a file inside ~/.ssh/config and paste below content
Host 192.168.100.14
SendEnv LANG LC_*
Ciphers +aes256-cbc
17
votes
Accepted
How can I identify an embedded Linux distribution?
The uname -a output identifies this as a Synology device. Such devices run Synology DiskStation Manager. This is Linux-based, but it is not managed like a typical Linux system running a “traditional” ...
15
votes
ssh Unable to negotiate: "no matching cipher found", is rejecting cbc
You can update your ssh configuration from the file located at: /etc/ssh/ssh_config
Launch a terminal.
Paste the line into the terminal: sudo nano /etc/ssh/ssh_config
Enter your password. Press Enter. ...
12
votes
Command to Search for Filenames Exceeding 143 Characters?
Although the GNU ‘findutils-default’ regular expression syntax doesn't provide a {n,m} interval quantifier, you can use a -regex test in GNU find if you select a different regextype, for example:
...
10
votes
Accepted
Command to Search for Filenames Exceeding 143 Characters?
Try:
find /your/path | grep -E '[^/]{143,}$'
9
votes
`ls` behaving differently inside and outside of bash script
The quotes are not part of the filenames. You're trying to remove files such as "file.txt" but the file is actually called file.txt.
touch "file.txt" # shell uses quotes; name ...
8
votes
"Command not found" when using ssh and non absolute commands
Probably, your $PATH doesn't include /usr/local/bin. Since this is ssh, there are three approaches that come to mind:
If PermitUserEnvironment is enabled in the sshd config, you ought to be able to ...
8
votes
ssh Unable to negotiate: "no matching cipher found", is rejecting cbc
The same problem as the OP bugged me for a long time, on a Synology server too, and the ssh -c aes256-cbc diskstation.local has been a useful stop gap measure. But knowing one’s server use obsolete ...
7
votes
`ls` behaving differently inside and outside of bash script
To enlarge upon roaima’s answer,
When you give commands to the shell,
it does a lot of processing and interpretation on the command line.
For example:
If you type
ls foo bar
the shell runs ls with ...
7
votes
Unable to mount network drive in Debian; error is "mount(2) system call failed: No route to host."
After some more research, it turns out I had a few missing packages:
sudo apt-get install keyutils
sudo apt-get install cifs-utils
I needed both in order for the problem to resolve itself.
Hope this ...
5
votes
Command to Search for Filenames Exceeding 143 Characters?
If you've already got a locate db, it is very fast at this.
locate --regex '.*/[^/]{143,}$'
4
votes
I'm trying to install apt-get onto an ARM64 using DPKG
You're trying to install an amd64 package on a arm64 system, which will obviously fail. Seems Synology has its own package manager : https://github.com/SynoCommunity/spksrc/issues/3403 . As for Docker,...
4
votes
Accepted
"Command not found" when using ssh and non absolute commands
Ok so on further investigation I noticed that on all of my other hosts mycommand is indeed in /usr/bin not in /usr/local/bin. The reason for this is, that every package manager has installed it in /...
4
votes
Why does Synology DSM's "USB Copy" skip Umlaut-named files?
This is a Bug in "USB Copy". OSX encodes Umlauts in a different way (NFD instead of NFC, see here and here). "USB Copy" is not able to deal with these names, it can only handle NFC encoded file names. ...
4
votes
How to exclude multiple directories from chown -R?
You've got your logic wrong, \( ! -path '*/@eaDir/*' -o ! -path '*/\#recycle/*' \) will match on the files whose path either don't contain /@eaDir/ (such as ./foo/bar, but also ./#recycle/whatever) or ...
4
votes
Accepted
Error 44 trying to rsync over ssh on Synology DSM
DSM can be a bit "funny", I had this issue before and fixed it by following this
Generally, rsync'ing as root is bad. However, if you're pulling
backups, it's the only way to read all files ...
3
votes
Accepted
meaning of @ in (btrfs?) pathnames
To be able to perform a Btrfs system snapshot to an inaccessible location outside of the directory structure, the root directory had to be moved from the bare file system to a subvolume. I think it ...
3
votes
Accepted
How wait for eth0 interface before running "ip link", "ip addr" and "ip route" commands?
Check the status of eth0 from /sys/class/net/eth0/operstate and wait until the network interface to be up:
while ! [ "$(cat /sys/class/net/eth0/operstate)" = "up" ]
do
echo "waiting for eth0 ...
3
votes
use SSHFS to mount Synology NAS
To add to the answer from @vindolin (..I don't have enough reputation just to add a comment),
As well as enabling SFTP, you also need to enable permissions to FTP for the specified user. If that ...
3
votes
Accepted
file command not found on Synology DSM
Many machines ship without a full desktop computer toolset. Why would you need file on your router or on your smartphone?
There's no additional profit through "ships a complete desktop Linux ...
3
votes
Checking whether all files were extracted correctly
I think you, or GPT(*), are confusing 7z commands with 7z options. Or perhaps confusing 7z with Info-ZIP's unzip program.
The 7z man page documents a t command to "Test integrity of archive"....
3
votes
Synology NAS: spurious message "Display all <n> possibilities? (y or n)" in PuTTY Terminal
That's the message your shell (bash) shows when you hit tab twice (try it out!).
Since SSH is both encrypted (so nothing else could insert these keypresses somehow) and putty being relatively time-...
2
votes
mv file/folder with blank-spaces in its name doesn't work - LFTP
This line:
lftp ftp://${userFTP}:${passFTP}@${servFTP} -e 'set ssl:verify-certificate false;set file:charset utf8;set ftp:charset utf8;cd downloads;mv "${fileName}" "${ftpDestinationPath}"'
The -e ...
2
votes
Accepted
Shrink MDADM Raid 5 containing LVM
@frostschutz You beauty! I don't know how I missed that, but I must have read too many man pages in the last week!
mdadm --grow /dev/md127 --array-size=25769803776
This is a temporary, safe, ...
2
votes
How wait for eth0 interface before running "ip link", "ip addr" and "ip route" commands?
Here's the solution I eventually solved my problem with:
while ! ip link show eth0 | grep -q 'state UP'; do
sleep 1
done
ip link add macvlan0 link eth0 type macvlan mode bridge
ip addr add 192....
2
votes
Which OS can I install on my old Synology DS107?
NetBSD wiki indicate it supports it
Procedure seems standard & quite accessible with very low electronics (rs232/icl232 chip & few wires) or using a build-in serial cable. Then you can ...
2
votes
Unable to log into Synology NAS using new SSH key
Turns out the authorized_keys file was corrupt:
ssh-rsa AAAAB3NzaC1y...
ssh-dss AAAAB3NzaC1k...
ssh-rsa
AAAAB3NzaC1yc2EAA...
ssh-rsa
AAAAB3NzaC1...
It seems as if just pasting the key did introduce ...
2
votes
Accepted
Different directory size after rsync and using du
Thanks to @they in the comments under OP, I've found the root cause. Original source volume contained lots of hard-linked directories/files and they all were copied to new volume as new standalone (...
2
votes
Where is the undo button in Linux? If I created an SSH key and copied the public key to a NAS, how would I undo or delete it?
An undo button on linux ? There is no such a thing.
Some apps may propose undo features following their own and particular way to rollback.
ssh-copy-id obviously does not.
Worse ? I am not even aware ...
Only top scored, non community-wiki answers of a minimum length are eligible