Connection to Globalscape EFT ssh server from RHEL8 fails with "Permission denied (publickey)"

Abstract: Resolve RHEL8 SSH publickey authentication failures to Globalscape EFT by verifying key permissions, correct identity file usage, and matching public keys in the server configuration.

Created: 2026-08-24 by

The "Permission denied (publickey)" error on RHEL8 when connecting to Globalscape EFT indicates that the SSH client cannot authenticate using the expected key pair. This is typically resolved by verifying that the correct private key is specified in the ssh command or configuration file, ensuring the corresponding public key is properly installed in the server's authorized keys list, and confirming that the SSH daemon on the Windows host accepts RSA or ED25519 keys as defined by its security policy.

Understanding the Authentication Failure

When an SSH connection attempt fails with a publickey rejection, the server has received your identity but explicitly refused it. Unlike password authentication failures, this error means the cryptographic handshake did not find a matching credential. In the context of Globalscape Enterprise File Transfer (EFT), which runs on Windows Server 2016, the SSH service is often configured to allow multiple authentication methods, but the client must present the exact key type and content that the server expects. RHEL8 uses OpenSSH by default, which may have stricter defaults regarding key algorithms than older Linux distributions. If the Globalscape EFT server is configured to reject weaker keys (such as DSA) or specific key formats, the RHEL8 client will fail before even prompting for a passphrase. It is crucial to distinguish between a network connectivity issue and an authentication failure; since the error is explicit about "publickey," the network path is likely functional, but the credentials are mismatched or missing. For more details on managing SSH connections securely, you might find Closing SSH Connection with Keygen helpful for understanding how keys are generated and managed locally.

Verifying Client-Side Key Configuration

The most common cause of this error on RHEL8 is specifying the wrong key file or having permissions issues on the local key files. You must ensure that the private key you intend to use is accessible and correctly referenced. First, check the permissions of your private key file. SSH requires strict permissions; if the file is readable by others, the client will ignore it silently or throw a warning. Use the following command to set the correct permissions:
chmod 600 ~/.ssh/id_rsa
Next, verify that you are invoking the SSH client with the correct identity file. If you are using a non-default key name, you must specify it explicitly:
ssh -i /path/to/private_key username@eft_server_ip
If you do not specify the key, SSH will try ~/.ssh/id_rsa, ~/.ssh/id_ecdsa, etc., in order. If your Globalscape EFT account is linked to a different key, the default attempt will fail with "Permission denied." You can also configure this permanently in your ~/.ssh/config file to avoid typing the flag every time. Additionally, ensure that the key format is compatible. Modern versions of OpenSSH on RHEL8 may refuse to use keys that are encrypted with legacy formats or are too short (e.g., 1024-bit RSA). If you recently generated a new key, consider generating an ED25519 key, which is more secure and widely supported by modern servers like Globalscape EFT:
ssh-keygen -t ed25519

Checking Globalscape EFT Server Settings

On the Windows side, the Globalscape EFT Administrator console controls which users are allowed to connect via SSH and which keys they possess. The error persists if the public key associated with your RHEL8 private key is not registered in the user's profile within EFT. Navigate to the User Management section in the Globalscape EFT Administrator interface. Locate the specific user account you are trying to access. Within the user's properties, look for the SSH Keys or Authorized Keys tab. Here, you must paste the content of your RHEL8 public key (~/.ssh/id_ed25519.pub or id_rsa.pub). Ensure that the key is saved and that the user account is enabled for SSH access. Some configurations require you to explicitly select "Allow SSH" for the user. If the key was added recently, restart the Globalscape EFT Service to ensure the changes are loaded into memory. It is also worth checking the global server settings for allowed key types. If the server is configured to only accept ECDSA keys, but you are sending an RSA key, the connection will be denied. Review the server's security policies to align them with your client's capabilities. For insights on debugging other connection protocols, see Troubleshooting curl not working on an RHEL8 Server.

Debugging with Verbose Output

If the above steps do not resolve the issue, use the verbose mode of the SSH client to see exactly where the negotiation fails. Run the connection command with the -v flag, increasing verbosity up to three times (-vvv) for detailed logs:
ssh -vvv -i ~/.ssh/id_ed25519 username@eft_server_ip
Look for lines indicating "Offering public key" followed by "Server accepts key." If the server rejects the offered key, the log will show why (e.g., "wrong key length" or "algorithm mismatch"). If no key is offered, the client may not be finding the key file at all, pointing back to permission or path issues. You can also query your effective SSH configuration to ensure no global settings are overriding your user-specific config:
ssh -G username@eft_server_ip | grep identityfile
This command outputs the final list of keys the client will try, helping you confirm that your intended key is included in the search path.

Firewall and Network Considerations

While less likely to cause a "publickey" error specifically, firewall rules on the Windows Server 2016 host or intermediate network devices might interfere with the SSH handshake if deep packet inspection is active. Ensure that port 22 (or your custom SSH port) is open and allows TCP traffic from your RHEL8 IP address. If you are using a proxy or jump host, ensure that the SSH tunneling is configured correctly so that the key exchange happens directly between the RHEL8 client and the EFT server. For information on verifying network port allocations that might affect such connections, refer to How to Verify the Dynamic Ports Allocation Settings in Linux.

Frequently Asked Questions

Why does my RHEL8 client reject the key I just created?

This usually happens due to incorrect file permissions. SSH requires private keys to be readable only by the owner (mode 600). If the permissions are too open, OpenSSH will refuse to use the key entirely, leading to authentication failure.

Can I use password authentication instead of keys?

Yes, if the Globalscape EFT server is configured to allow it. However, many enterprise setups disable passwords for security. You can force password auth on the client side using ssh -o PreferredAuthentications=password, but the server must permit this method for the user.

What if the key is accepted but I still get disconnected?

This may indicate a session timeout or a mismatch in encryption algorithms. Check the server logs in Globalscape EFT for specific rejection reasons. Ensure both the client and server support strong ciphers like AES-GCM, as older algorithms may be disabled by default on RHEL8.

Does the user account need special privileges in Windows?

No, the Windows user account does not need administrator rights to receive SSH files. It only needs a valid home directory configured in Globalscape EFT and the appropriate permissions to read their own authorized keys file.

How do I reset my SSH key if I lost the private one?

You must generate a new key pair on RHEL8 and update the public key in the Globalscape EFT Administrator console. Delete the old public key entry from the user's profile to prevent confusion, then test the connection with the new private key.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More