Home >Operation and Maintenance >CentOS >What to do if the centos ssh command cannot be found

What to do if the centos ssh command cannot be found

藏色散人
藏色散人Original
2022-01-17 11:55:564285browse

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

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

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:

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!

Statement:
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