[root@mdm05 openssh-8.3p1]# ssh -V
-bash: /usr/local/bin/ssh: No such file or directory
出现这个报错只能使用CD命令-bash 命令路径 “No such file or directory”
profile配置文件出错导致
解决方法:
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Linux下ssh查看版本报No such file or directory
最新推荐文章于 2024-03-19 10:24:52 发布
本文解决了一个常见的SSH连接问题,当尝试使用SSH命令时遇到'No such file or directory'错误。问题源于profile配置文件中bash命令路径设置不当。通过正确设置PATH环境变量,包括/usr/local/sbin, /usr/local/bin等目录,可以有效解决该问题。

1万+

被折叠的 条评论
为什么被折叠?



