bash: apt-get: 未找到命令...

841 阅读1分钟

在Linux上安装Secure-CRT连接时,需要安装openssh-server服务,并确认打开了22监听端口。命令如下:

apt-get install openssh-server

此时报错了:

bash: apt-get: 未找到命令...

原因是:

在centOS环境下不能用apt-get,要用yum命令更新或下载

我的linux系统确实是centOS的,在centOS下的命令如下:

更新:

yum -y update

下载:

yum -y install openssh-server

以上是下载openssh-server。