I will give an example of a file transfer script via SFTP in Windows.
To configure the timeout for SSH sessions, let’s see where the SSH server configuration file is located: Open it in any text editor, for example nano:
Let’s say that several users are connected through SSH. First look at the list of online users: Suppose the following information is displayed (where test is the user’s login): tty1 – it is a client logged in locally, that is, it is located near the computer. pts/1 – judging for example on IP and WHAT, […]
Here are a few ways to receive e-mail notifications about someone connecting to the server via SSH. FIRST METHOD: With a text editor, for example nano, open the file /etc/ssh/sshrc (in the nano editor CTRL+X to exit, y/n and Enter to save or discard changes): And add the following code to it: You do not […]
On the test I’ll give an example of getting the number of clients connected to the usual sectoral antenna Ubiquiti AirMax Rocket M5. We will receive the data via SSH. To test once we connect to the device (the first time when connecting, type yes and press enter): Now in Zabbix we add the data […]
On the test, I change the SSH port in Ubuntu Server 14.0.4 LTS and Ubuntu Server 16.0.4 LTS. Open the SSH configuration for example in the nano text editor (in nano, press Ctrl+X to exit, y/n to save or cancel changes): Find the line “Port 22” and change it for example to “Port 58222“. To […]
It took somehow some Linux servers to configure SSH checks to not install Zabbix-agent on them. Zabbix-server itself is installed on Ubuntu Server. Below in order I will describe how to configure SSH checks in Zabbix. Authorization for SSH will be configured by key instead of password, for this we stop zabbix-agent and zabbix-server: Create […]