在Debian Linux安装SSH服务器

时间:2020-07-27 12:58:59  来源:igfitidea点击:

安装SSH Server Debian Linux允许我们通过SSH协议登录Debian Server。
SSH是从远程位置登录Debian的首选方法,因为SSH协议通过Internet提供了安全的加密连接。

在本教程中,我们将学习如何在Debian 8.3上安装SSH服务器。

Debian 8.3的SSH服务器由OpenSSH-Server包提供。
我们可以使用apt-get install命令在Debian Linux上安装OpenSSH-Server。

在Debian 8上安装OpenSSH服务器

首先使用APT-GET UPDATE命令更新APT源列表。

apt-get update

然后使用apt-get install命令安装Debian上的OpenSSH服务器。

apt-get install openssh-server

现在开始并使Debian SSH服务器启动系统重新启动。

systemctl start ssh.service
systemctl enable ssh.service

还要运行netstat命令以确保SSH端口22打开和运行。

netstat -tulnp | grep 22

我们可以使用systemctl命令查看SSH服务器的状态。

systemctl status ssh.service