FTPMonitor / Guides / SFTP key authentication required

SFTP key authentication required

Why SFTP servers require SSH key authentication and how to configure keys correctly.

Diagnose this automatically

Verify whether authentication is the actual failure point.

terminal
npx ftpmonitor check --protocol sftp --host sftp.example.com --port 22 --username user --password pass
Shareable output
terminal
npx ftpmonitor check --protocol sftp --host sftp.example.com --port 22 --username user --password pass --format slack --copy

Prefer the browser? Run the same check on the homepage.

Many SFTP servers require SSH key authentication instead of passwords.

Common causes

  • Password authentication disabled
  • Missing public key
  • Incorrect key permissions

Fix checklist

  1. Generate SSH key pair.
  2. Install public key on server.
  3. Ensure correct permissions on ~/.ssh.
Related
Diagnostics powered by FTPMonitor CLI