What to do if the centos ssh command cannot be found

藏色散人
Release: 2022-01-17 11:55:56
Original
4241 people have browsed it

centos ssh command cannot find the solution: 1. Check the ssh installation content; 2. Install the ssh client by executing "yum -y install openssh-clients".

What to do if the centos ssh command cannot be found

The operating environment of this article: centos6.8 system, openssh-5.3, Dell G3 computer.

What should I do if the centos ssh command cannot be found?

centos The ssh command cannot be found (-bash: ssh: command not found)

centos6.8 uses ssh to connect to the remote server prompt:

-bash: ssh: command not found
Copy after login

centos The ssh service is installed by default and there is no client.

View ssh installation

# rpm -qa | grep openssh
openssh-5.3p1-123.el6_9.x86_64
openssh-server-5.3p1-123.el6_9.x86_64
Copy after login

openssh-clients is not installed

yum installs ssh client

# yum -y install openssh-clients
# ssh root@127.0.0.1
root@127.0.0.1's password:
Copy after login

executed successfully.

Recommended tutorial: "centos tutorial"

The above is the detailed content of What to do if the centos ssh command cannot be found. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template