Solve the problem that the rz command cannot be used

the first method:

After logging in with the root account, execute the following commands in sequence:

1

cd /tmp

2

wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz

 

3

tar zxvf lrzsz-0.12.20.tar.gz && cd lrzsz-0.12.20

4

./configure && make && make install

 

      The above installation process installs lsz and lrz into the /usr/local/bin/ directory by default. Now we can't use it directly. Let's create a soft link and name it rz/sz :

1

cd /usr/bin

2

ln -s /usr/local/bin/lrz rz

 

3

ln -s /usr/local/bin/lsz sz

The second method: --- strong push

The first method cannot be used normally on the fortress machine, so all use the curve to save the country

Use xshell to log in to the bastion machine, the username is unchanged, and the password is changed to: password + space + Google auhenticator

sudo yum install -y lrzsz


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325763566&siteId=291194637