Problems and Solutions

In this section, we cover a wide range of difficulties, organized by category. the sidebar "The Top Ten SSH Questions" lists what, in our experience, are the most frequently asked of the frequently asked questions. We focus on problems that may occur in many versions of the SSH software on diverse operating systems. We don't address the following sorts of questions that rapidly become obsolete: These types of problems are best solved by the SSH FAQ ["Web Sites"] or through discussion with other SSH users.In all questions, we will assume you have already used debug or verbose mode (e.g., ssh -v) to isolate the problem. (If you haven't, you should!)

General Problems

Authentication Problems

General authentication problems

Password authentication

Trusted-host authentication

Public-key authentication

When editing the remote authorization file, make sure your text editor doesn't insert line breaks into the middle of a public key. SSH1 and OpenSSH public keys are very long and must be kept on a single line.

PGP key authentication

Key and Agent Problems

General key/agent problems

ssh-keygen

ssh-agent and ssh-add

Per-account authorization files

Server Problems

sshd_config, sshd2_config

Client Problems

General client problems

Client configuration file

ssh

scp

sftp2

Port forwarding