Skip to content

堡垒机记录用户操作日志 #12

Description

@wqk151

试试Linux的script命令来记录用户操作的命令:
将下面命令添加的用户环境变量中:~/.bash_profile

/usr/bin/script -qafc "sshpass -p ssh root@192.168.1.1" /log/a.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions