堡垒机资产分配(3)-管理资产

 (2条消息) 堡垒机资产分配(2)-添加资产_怡雪~的博客-CSDN博客

前言: 上篇讲解了JumpServer的添加资产

现在来讲解如何管理资产

1.查看资产和管理账号

 这里显示MySQL错误,不用管,不影响后面连接

 发现资产与管理账号一一对应。

2.开启windows的远程桌面

要想远程管理windows,需要先开启远程桌面功能

打开控制面板搜索远程

 

 3.开启linux机器的远程桌面

#查看sshd服务是否开启,关闭的话,输入systemctl start sshd开启
[root@localhost ~]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since 四 2023-06-29 10:55:01 CST; 4h 29min ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 983 (sshd)
    Tasks: 1
   Memory: 1.0M
   CGroup: /system.slice/sshd.service
           └─983 /usr/sbin/sshd -D

6月 29 10:55:01 localhost.localdomain systemd[1]: Starting OpenSSH server daemon...
6月 29 10:55:01 localhost.localdomain sshd[983]: Server listening on 0.0.0.0 port 22.
6月 29 10:55:01 localhost.localdomain sshd[983]: Server listening on :: port 22.
6月 29 10:55:01 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
6月 29 11:01:52 localhost.localdomain sshd[8180]: Accepted password for root from 192....h2
Hint: Some lines were ellipsized, use -l to show in full.

4.开启mysql的远程服务

[root@localhost ~]# mysql -uroot -p123456
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 37
Server version: 5.5.68-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> grant all on *.* to root@'%'  identified by '123456' with grant option;
Query OK, 0 rows affected (0.01 sec)

5.资产授权

把windows机器分配给财务张三

 

 

 

 点击提交。创建成功。 

 现在切换财务张三的账号,尝试连接windows机器

点击我的资产,发现有三台服务器。

 按照设置,张三只能控制其中的win10机器,我们先尝试连接linux和mysql。

点击终端标识连接

 Linux机器,选择账号为灰色,不可用

MySQL机器,选择账号也为灰色,不可用

 只有win10机器,可以选择账号进行连接

 点击连接,显示成功

 如果觉得窗口小,可以点击视图,选择全屏

 把linux机器和MySQL分配给管理员

 

 

 点击提交。创建成功。

 现在尝试连接Linux机器

点击Web终端

 

 

 连接成功。

再尝试连接MySQL

 

 连接成功。可以正常使用

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值