Category Archives: Linux

[Solved] Permissions 0755 for ‘/data/user/lxb/.ssh/id_rsa’ are too open.

Transferring the file, prompting that the secret key file is too open, prints the following error.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for ‘/data/user/lxb/.ssh/id_rsa’ are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key “/data/user/lxb/.ssh/id_rsa”: bad permissions
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.2]

The above printout is prompting you that the permissions granted to the private key file are too large.

Solution: $sudo chmod -R 700 /data/user/lxb/.ssh/
End.

 

Linux tar Pack Unzip Error: not in gzip format [How to Solve]

problem

When decompressing the compressed package downloaded by WGet, an error message appears as shown in the following figure:

reason

The link after the WGet address actually belongs to the link in the page. You can view the file type through the file file name instruction, but the tar instruction cannot decompress it

Solution:

Method 1:

To find the link to download again, click the download link in the browser, jump to the download interface, and right-click to copy the link from the download interface

The copied contents are as follows: https://download.oracle.com/otn/java/jdk/8u221-b11/230deb18db3e4014bb8e3e8324f81b43/jdk-8u221-linux-x64.tar.gz?AuthParam=1636514896_0a94d4c8e72779d9711da0268ba788ee

Method 2:

Download it locally, upload it to the specified directory of the server through xftp and other tools, and then decompress it

[Solved] Centos8 Install Docker Error: Error: Unable to find a match: docker

1. First update: yum -y update
2. Centos8 uses podman instead of docker by default, so containerd.io is needed, then we just install it
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
The following commands are executed in sequence
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce

CentOS ping www.google.com Error: name or service not know

When the installed operating system Ping www.google.com, report name or service not known

It’s OK to check the virtual network settings. Some virtual machines from the same template can or can’t Ping the Internet

Finally, several data are integrated, and the solutions are as follows:

1 add DNS server first

vi /etc/resolv.conf

Add the following two lines to the file:

nameserver 8.8.8.8

nameserver 8.8.4.4

Save, exit and restart the server. Then Ping again and try again

If not, continue:

2 set a file:

VI/etc/sysconfig/network scprits/ifcfg-ens33 (the file name may be different. Mine is ens33, and some seem to be ENS plus other numbers)

Find onboot = no in the file and change to onboot = yes

Save exit

Restart network: systemctl restart network

 

[Solved] error: RPC failed; result=35, HTTP code = 0/fatal: The remote end hung up unexpectedly

Planning to download the stress testing tool ycsb
Execution command error
git clone https://github.com/brianfrankcooper/YCSB.git
Cloning to’YCSB’…
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
Modify command
git clone git://github.com/brianfrankcooper/YCSB.git
Cloning to’YCSB’…
remote: Enumerating objects: 20648, done.
remote: Total 20648 (delta 0), reused 0 (delta 0), pack-reused 20648
Among recipients: 100% (20648/20648), 31.68 MiB | 456.00 KiB/s, done.
Processing delta: 100% (8016/8016), done.
Finish
https replaced git

[Solved] Centos7 Error: Failed to start iptables.service: Unit not found

In CentOS 7 or RHEL 7 or Fedora, firewalls are managed by firewalld

add to

Firewall CMD — zone = public — add port = 80/TCP — permanent (– permanent effective, invalid after restart without this parameter)

Firewall CMD — zone = public — add port = 1000-2000/TCP — permanent
reload

Firewall CMD — reload
View

Firewall CMD — zone = public — Query port = 80/TCP
delete

Firewall CMD — zone = public — remove port = 80/TCP — permanent
turn on the firewall

Systemctl start firewalld. Service
turn off the firewall

Systemctl stop firewalld. Service
View running status

Firewall CMD — state// running means running

[Solved] Linux Upgrade openssh Error: PAM headers not found

motivation

In the installation steps of upgrading openssh → → configuration command


./configure --prefix=/usr/local/openssh/ --sysconfdir=/etc/ssh --with-md5-passwords --with-pam --with-zlib --with-openssl-includes=/usr --with-privsep-path=/var/lib/sshd

An error was reported

configure: error: PAM headers not found

Solution

yum -y install pam-devel