How to transfer Ezeelogin SSH session logs recorded to a remote server ?
Article ID: 346 | Rating: Unrated | Last Updated: Mon, Oct 19, 2020 at 10:11 AM
Transfer Ezeelogin SSH session logs recorded to a remote server
1. Create a Linux system user on the remote server to which the ssh session log files has to be transferred.
You can skip this step if a Linux system user already exists on the remote machine
Add user with the following command. You can replace the username "backup-user" with username of your choice.
2. Setup SSH-KEY based authentication for passwordless authentication
a. Create a ssh key pair on the server using the following command on the Jumpserver.
Now, the public key has been saved in the file /root/.ssh/id_rsa.pub and private key in /root/ssh/id_rsa
b. Paste the public key in the remote server users "backup-user" authorized key file.
So that you can ssh to remote server from the Jumpserver without password
3. Copy/sync logs from Ezeelogin Jumpserver to the remote server using rsync command.
If you want to copy a ssh user log file to the remote server, use the following command
root@jumpserver:~# rsync -av /var/log/ezlogin/full/ezadm622/acer~test.centos2.com email@example.com:/home/logs/
There are no attachments for this article.