debian安装kali_Ubuntu,Debian,Kali Ssh安装

debian安装kali

debian安装kali

I want to connect my Linux server securely. Security is important nowadays. OpenSSH is a secure shell for remote connections. OpenSSH is very popular and have very life saver features.

我想安全地连接我Linux服务器。 如今,安全性很重要。 OpenSSH是用于远程连接的安全外壳。 OpenSSH非常流行,并且具有救生功能。

安装 (Installation)

Installation of ssh is like below. ssh full package name is Openssh-server which provides daemon, client and auxiliary tools for ssh.

ssh的安装如下。 ssh的完整软件包名称是Openssh-server,它为ssh提供守护程序,客户端和辅助工具。

Ubuntu,Debian,Mint,Kali: (Ubuntu, Debian, Mint, Kali:)

$ sudo apt-get install openssh-server
Ubuntu, Debian, Mint, Kali
Ubuntu, Debian, Mint, Kali
Ubuntu,Debian,Mint,Kali

CentOS,Fedora,RedHat: (CentOS, Fedora, RedHat:)

$ sudo yum install openssh-server

启动Ssh服务 (Start Ssh Service)

After installation if service is not started by default. We can start ssh service with different methods but the most basic way is using  init.d system.

安装后,如果默认情况下未启动服务。 我们可以用不同的方法启动ssh服务,但是最基本的方法是使用init.d系统。

$ sudo /etc/init.d/ssh start
Start Ssh Service
Start Ssh Service
启动Ssh服务

获取Ssh服务的状态(Get Status of Ssh Service)

After the service is started we can check the service status with the status command for  init.d. This will list some information like process ID, memory usage, CPU usage.

服务启动后,我们可以使用status命令的init.d检查服务状态。 这将列出一些信息,例如进程ID,内存使用率,CPU使用率。

$ /etc/init.d/ssh status
Get Status of Ssh Service
Get Status of Ssh Service
获取Ssh服务的状态

启用S​​SH防火墙规则(Enable SSH Firewall Rule)

Firewalls are used to protect servers for attacks.One of the main function is blocking port access. Default Ubuntu installation enables firewall named `ufw`. We will create a rule for `ufw` with the following command.

防火墙用于保护服务器免受攻击。主要功能之一是阻止端口访问。 默认的Ubuntu安装会启用名为“ ufw”的防火墙。 我们将使用以下命令为“ ufw”创建规则。

$ ufw allow ssh
Enable SSH Firewall Rule
Enable SSH Firewall Rule
启用S​​SH防火墙规则

生成SSH密钥(Generate Ssh Key)

SSH uses public and private keys. By default SSH do not generate SSH keys by default. We can create SSH keys with the ssh-keygen like below.

SSH使用公钥和私钥。 默认情况下,SSH默认情况下不生成SSH密钥。 我们可以使用ssh-keygen创建SSH密钥,如下所示。

$ ssh-keygen
Generate Ssh Key
Generate Ssh Key
生成SSH密钥

We see from screenshot that RSA key pair is created by default. Created keys are stored  in the user home .ssh directory.

我们从屏幕截图中看到,RSA密钥对是默认创建的。 创建的密钥存储在用户主目录.ssh

连接SSH服务器 (Connect SSH Server)

Now we will made a test connection to the SSH server by providing the host name or IP address.

现在,我们将通过提供主机名或IP地址建立与SSH服务器的测试连接。

$ ssh 192.168.142.144
Connect SSH Server
Connect SSH Server
连接SSH服务器

Ubuntu,Debian,Kali Ssh安装信息(Ubuntu, Debian, Kali Ssh Installation Infografic)

Ubuntu, Debian, Kali Ssh Installation Infografic
Ubuntu, Debian, Kali Ssh Installation Infografic
Ubuntu,Debian,Kali Ssh安装信息
LEARN MORE  How To Use mRemoteNG For RDP, VNC, SSH Remote Connections?
了解更多信息如何为RDP,VNC,SSH远程连接使用mRemoteNG?

翻译自: https://www.poftut.com/ubuntu-debian-kali-ssh-installation/

debian安装kali

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值