debian安装kali_如何在Ubuntu,Debian,Kali,Mint中安装,启动,停止,重新启动OpenSSH?...

debian安装kali

debian安装kali

Ubuntu is popular Linux distributions used by millions. In order to access Ubuntu systems remotely we use ssh protocol. So in order to access and manage Ubuntu systems the ssh server should be installed and running without restriction like firewall. In this tutorial we will look how to install, start and troubleshoot SSH service in Ubuntu, Debian, Kali, Mint. We can use this tutorial distributions like Debian, Kali and Mint too because of their origin and system base are the same.

Ubuntu是数以百万计的流行Linux发行版。 为了远程访问Ubuntu系统,我们使用ssh协议。 因此,为了访问和管理Ubuntu系统,应该像防火墙一样不受限制地安装和运行ssh服务器。 在本教程中,我们将研究如何在Ubuntu,Debian,Kali,Mint中安装,启动SSH服务并进行故障排除。 我们也可以使用本教程发行版,例如Debian,Kali和Mint,因为它们的来源和系统基础是相同的。

安装SSH服务 (Install SSH Service)

We can install OpenSSH service with different ways but the most straight forward way is using apt package manager. We will use apt install to install OpenSSh Service. This requires root privileges.

我们可以通过不同的方式安装OpenSSH服务,但最直接的方法是使用apt软件包管理器。 我们将使用apt install安装OpenSSh服务。 这需要root特权。

$ apt install openssh-server

启动SSH服务 (Start SSH Service)

By default OpenSSh service do not starts automatically. We need to start OpenSSH service explicitly by using systemctl command. systemctl command is provided by default recent versions of Ubuntu, Debian, Kali and Mint. If it is not installed install systemctl . In order to get more details look following tutorial.

默认情况下,OpenSSh服务不会自动启动。 我们需要使用systemctl命令显式启动OpenSSH服务。 默认情况下,Ubuntu,Debian,Kali和Mint的最新版本提供systemctl命令。 如果未安装,请安装systemctl 。 为了获得更多详细信息,请参阅以下教程。

Linux Sshd Server Configuration and Security Options With Examples

Linux Sshd服务器配置和安全性选项示例

$ systemctl start ssh

显示SSH服务状态 (Show SSH Service Status)

Services starts, stops but how can we show or list current status of SSH service. We will use systemctl status command in order to list current status of the SSH.

服务启动,停止,但是我们如何显示或列出SSH服务的当前状态。 我们将使用systemctl status命令来列出SSH的当前状态。

$ systemctl status ssh
Show SSH Service Status
Show SSH Service Status
显示SSH服务状态

We can see that green active (running) text that shows SSH service is running.

我们可以看到显示SSH服务的绿色active (running)文本正在运行。

重新启动SSH服务 (Restart SSH Service)

In some situations we need to restart the SSH service. Configuration change in SSH service requires SSH restart in order to take affect. We can restart SSH service like below. This will reload SSH service with the latest SSH service configuration which resides in /etc/ssh/sshd_config .

在某些情况下,我们需要重新启动SSH服务。 SSH服务中的配置更改要求重新启动SSH才能生效。 我们可以如下所示重新启动SSH服务。 这将使用/etc/ssh/sshd_config的最新SSH服务配置重新加载SSH服务。

$ systemctl restart ssh

在系统启动时启用SSH服务启动 (Enable Start of SSH Service At The System Boot)

After system reboots or boots the SSH service do not starts automatically and starting it explicitly is a trivial task. We can enable SSH service start automatically after system reboot.

在系统重新引导或引导后,SSH服务不会自动启动,而显式启动它是一项微不足道的任务。 系统重启后,我们可以启用SSH服务自动启动。

$ systemctl enable ssh

在系统启动时禁用SSH服务启动 (Disable Start of SSH Service At The System Boot)

If we do not need to start SSH service at the system boot  we can disable automatic start with the following command.

如果我们不需要在系统启动时启动SSH服务,则可以使用以下命令禁用自动启动。

$ systemctl disable ssh
LEARN MORE  Linux Tmux Tutorial With Examples
了解更多带有示例Linux Tmux教程

翻译自: https://www.poftut.com/how-to-installstart-stop-restart-openssh-in-ubuntu-debian-kali-mint/

debian安装kali

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值