一、SSH服务安装1、安装ssh服务
假如你用的是redhat,fedora,centos等系列linux发行版linux 安装sshandroid linux,这么敲入以下命令:
sudo yum install sshd sudo yum install openssh-server
假如你使用的是debian,ubuntu,linuxmint等系列的linux发行版linux 安装ssh,这么敲入以下命令:
sudo apt-get install sshd sudo apt-get install openssh-server
2、启动ssh服务
service sshd start or /bin/systemctl restart sshd.service or /etc/init.d/sshd start or sudo systemctl restart sshd
设置开机运行
chkconfig sshd on
查看ssh服务的状态
sudo service sshd status
若果出现
Loaded:error(Reason:Nosuchfileordirectory)
提示的话linux中文乱码,说名没有安装ssh服务,根据第一步:安装ssh服务。
倘若出现
Active:inactive(dead)
说明早已安装了ssh服务,并且没有开启。根据第二步:开启ssh服务
以上就是SSH 服务安装与启动教程:Redhat、Debian 等系列 Linux 发行版的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号