Not available in SaaS.
root), and — in either case — accounts with public SSH keys.
Configuration keys
Add or change these inEkranServer.Settings.config, found in C:\Program Files\Ekran System\Ekran System\Server on the Application Server host.
General prerequisites
For Linux connections using either passwords or SSH keys:1
Confirm sudo permissions
Check the account used for scanning/onboarding has sudo:Output
root means it has sudo permissions.You can scan accounts without sudo, but you cannot scan accounts with public SSH keys, or onboard any account type, without sudo.
2
Check the connection timeout
Confirm the timeout in
EkranServer.Settings.config (the LinuxConnectionTimeoutSeconds key, default 20s). To increase it on the Application Server host, raise that value and set Max SYN Retransmissions to 8 (~2 minutes):3
Confirm the Sudo service
Check that the Sudo service is installed on the target computer.
4
Exclude scanning user from secondary auth
If the scanning/onboarding account has Secondary User Authentication enabled on its Linux Client, add its username to Exclude from secondary authentication on the Configuration page’s Authentication Options tab.
5
Confirm Bash is installed
Using passwords for SSH connections
Open the sshd config and ensure password authentication is on:PasswordAuthentication to yes, then reload SSH:
Using public SSH keys for SSH connections
1
Enable public key authentication
In
/etc/ssh/sshd_config, set PubkeyAuthentication to yes, then sudo systemctl reload ssh.2
Configure passwordless sudo
Create a sudoers file for the user:Add this line (replace Test it:If configured correctly, you switch to
{username}):root without a password prompt.3
Confirm the authorized_keys location
Check the SSH keys are at
{username}/.ssh/authorized_keys on the target.Troubleshooting
Application Server logs can be downloaded from the Management Tool or found inC:\Program Files\Ekran System\Ekran System\ServerLogs.
Failed to connect to the target host
Failed to connect to the target host
The target is offline, or the timeout is too low. Turn the computer on, or increase
LinuxScanningConnectionTimeoutSeconds in the config file.Invalid user credentials specified
Invalid user credentials specified
Wrong password, wrong/non-existent username, or wrong private key. Verify the credentials and test the connection over SSH, and confirm your public key is at
/home/{username}/.ssh/authorized_keys.Connection refused
Connection refused
The
sshd service is offline/uninstalled, the SSH port is firewalled, the host is offline, or the timeout is too low. Install the OpenSSH client (sudo apt-get install openssh-client), start sshd (sudo systemctl start sshd after checking systemctl status sshd), add the Application Server host to the target’s TrustedHosts, and allow the LinuxScanningPort in the firewall (sudo ufw enable {port}/tcp).Hostname cannot be resolved
Hostname cannot be resolved
The target can’t be reached by hostname. On the Application Server host, edit
C:\Windows\System32\drivers\etc\hosts (open Notepad as administrator, set Files of type to All Files) and add a line like 127.0.0.1 domain.local, then save.Passwordless sudo is not configured
Passwordless sudo is not configured
Connecting with a public key but passwordless sudo isn’t set up. Create the sudoers file (
sudo visudo -f /etc/sudoers.d/{username}), add {username} ALL=(ALL) NOPASSWD: ALL, and verify with sudo -i.Other errors
Other errors
- Error executing an ssh command — make sure the
sudoutility is installed on the computer. - Incorrect SSH key format / wrong passphrase — confirm you can connect to the secret with the uploaded private key via the Connection Manager.
- Connection failed for an unknown reason (for example,
ProxyException) — verify credentials and test over SSH. - Bash is not installed — verify Bash for the connecting user (
command -v bash), install it if missing (needs sudo), or add standard paths toPATHand~/.profileif installed but not found.
Related
Account Discovery
Create and run Linux Discovery rules.
WMI & PowerShell scanning
The equivalent setup for Windows Computer Discovery.