![debian安装kali](https://img-blog.csdnimg.cn/img_convert/92b9fc59158ad37be9199b3ca890600b.png)
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
$ 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](https://img-blog.csdnimg.cn/img_convert/407026d91f3737f4681422b2dd4346b2.png)
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
翻译自: https://www.poftut.com/how-to-installstart-stop-restart-openssh-in-ubuntu-debian-kali-mint/
debian安装kali