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.
[email protected]:~# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:eUKBEdUlDVzQgCKT3QHBVwHHCH0IjWa8cDdNkRBrvZM [email protected]
The key’s randomart image is:
| =B#B/@%o |
| = @ @=B.o |
| B = o. |
| .o . o |
| S E |
| o . |
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.
[email protected]:~# vi /home/backup-user/.ssh/authorized_keys
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