1. Access to the Internet
yum -y install openssh-clients
2. Intranet installation version
The CentOS system comes with the openssh server-side program, but the ssh client is not installed. The installation method of the client is recorded as follows:
Check the local service
input: You can see the sshd item in the chkconfig
result to confirm whether the service is running in the current environment (in the command line environment, confirm whether 2 or 3 is on)
View local CD-ROM
input: ls /dev/*cd*
Display: /dev/cdrom /dev/cdrw
The CD image is loaded in the cdrom, so the next step is to load the image into the CentOS system
Create the directory used by the mirror and load it
Type: mkdir /mnt/cdrom
Type: mount /dev/cdrom /mnt/cdrom
download finished
Find the installation file of Openssh client
Input: cd Packages
Input: ls *ssh*
You can see openssh-clients-5.3p1-81.e16.x86_64.rpm in the result (the version number may be different in different versions of the system)
Start the installation and
enter: rpm -ivh ./openssh-clients-5.3p1-81.e16.x86_64.rpm
The result may be an error, suggesting that libedit-2.11-4.20080712cvs.1.e16.x86_64.rpm is not installed
Input: ls *libedit*
You can see libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm in the prompt, installed
rpm -ivh ./libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm
After completion, re-enter the openssh client installation command
input: rpm -ivh ./openssh-clients-5.3p1-81.e16.x86_64.rpm The
installation is complete
Note: Maybe the versions of libedit and openssh-clients are not the same. Please note that the first few words are the same
link address.
Enter: ssh localhost
and a password prompt will appear, indicating that the installation is successful.