Applicable to:
- Plesk for Linux
Symptoms
-
Unable to connect to the server via SFTP with an FTP client. The following error is shown:
CONFIG_TEXT: Couldn't upload to your SFTP server: Error in the SSH layer
-
SSH keys are correct;
-
The following errors could be found in /var/log/messages or /var/log/secure :
CONFIG_TEXT: sshd[26790]: reverse mapping checking getaddrinfo for 203-0-113-2.example.com [203.0.113.2] failed - POSSIBLE BREAK-IN ATTEMPT!
sshd[26788]: reverse mapping checking getaddrinfo for 203-0-113-2.example.com [203.0.113.2] failed - POSSIBLE BREAK-IN ATTEMPT!
sshd[26790]: Accepted publickey for example from 203.0.113.2 port 59806 ssh2: RSA 9d:3a:b6:fc:92:ae:34:2c:7a:22:ba:0d:a7:fc:a0:ce
sshd[26788]: Accepted publickey for example from 203.0.113.2 port 59805 ssh2: RSA 9d:3a:b6:fc:92:ae:34:2c:7a:22:ba:0d:a7:fc:a0:ce
Cause
There is no reverse DNS recordfor the server hostname that is used.
Resolution
-
Connect to the server via SSH;
-
Set the
UseDNS
value to no in the/etc/ssh/sshd_config
file using any text editor:CONFIG_TEXT: useDNS no
-
Reload the sshd service:
# service sshd reload
Comments
0 comments
Please sign in to leave a comment.