Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Linux Commands / IT Support Guides

Collect SSH connection diagnostics without weakening security

An SSH failure can happen during DNS resolution, TCP connection, key exchange or authentication. Verbose output helps identify the stage before any server-side change.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

ssh -v support@example.com

How to read the result

The client prints progress messages about connection and authentication attempts. Permission denied indicates a different stage from connection refused, name resolution failure or host-key mismatch.

What to do next

Replace the example account and host with an authorized target. Compare the offered identity with the expected account, and verify host-key changes through a trusted channel.

Before you make a change

Do not disable host-key checking to suppress a warning. Verbose output can expose usernames, hostnames and key filenames even though it should not print private key material.

Share this article

Back to results