CCNA HUB

CCNA and Linux Training Hub!

CCNA and Linux Training Hub!

  • Home
  • R&S
    • IP Fundamentals
    • Switching
    • Routing
    • IPv4 Suite
    • IPv6 Suite
    • Labs
  • Linux
    • Virtualization 101
    • Basic Configuration
    • Security Measures
    • Database Server
    • Web Server
    • HTTP Tuneup
    • FTP Server
    • Mail Server
    • DNS Server
    • Control Panels
    • Monitoring
    • Backup and Maintenance
  • WordPress
  • About
    • Contact Us
    • Be part of It
    • Under the Hood
CCNA HUB > Blog > Linux > Configuring SSH-Key Based Authentication > SSH Server and Client Most Known Error Messages

SSH Server and Client Most Known Error Messages

By Imad Daou Leave a Comment

Post Views: 4,139

Building Professional Web Hosting Solution
<< Linux Basic Setup and Configuration Course
>> Configuring SSH-Key Based Authentication Section

section table
  1. Understanding SSH-Keys Based Authentication
  2. Creating SSH-Keys using Putty Keys Generator
  3. Creating Public VPS Droplet using DigitalOcean
  4. Managing Linux VPS Instance via Putty SSH Client
  5. Managing Linux VPS Instance via WinSCP Client
  6. Creating SSH-Keys using Terminal Keys Generator
  7. Switching SSH Password to SSH-Keys Authentication
  8. Uploading Admins and Friends SSH-Keys to VPS
  9. Uploading SSH Public Keys using VPS Panel
  10. SSH Hopping using SSH Agent Forwarding
  11. Deploying Public VPS instance using Vultr Provider
  12. Securing and Hardening SSH Server Configuration
  13. SSH Server and Client Most Known Error Messages
Image Source
Image Source

Hopefully you won’t face critical errors when using SSH, however, things can go wrong sometimes. SSH Server and Client Most Known Error Messages will cover only the errors that I have faced so far while I was setting and testing my Web Hosting Server Solution. I will keep this article open in case I seen more new errors, please feel free to email me if you have faced different errors.

Objectives:

Troubleshoot Common SSH Server/Client Error Messages

Prerequisites:

A. Basic Debian or Red Hat Linux Knowledge

B. Login to your DigitalOcean or Vultr Account

Note: I have found the following site as well for more errors you might face while setting up SSH  http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter10.html

Recommendations:

For better performance, use VPS with at least 2 CPUs, 4G Memory, 1G Bandwidth, and SSD Storage drive.

Warning: Remote Host Identification Has Changed

First of all, don’t panic. You will probably face this Warning one day, especially if you do a lot of testing like me. Briefly, if you face the following Warning, your Admin Station’s SSH Client is confused and due to this confusion, it’s suspecting a Man in the Middle Attack.

It happens for too many reasons, one of them, when you destroy and recreate the VPS again (using the same SSH-Keys) from a snapshot/backup image or even New VPS, which can hold the same IP Address that has been used previously, therefore, your SSH client confused because the New VPS that you have just created carries the same IP Address, same Public Key, but Different Server’s Key Fingerprint.

Using Putty

It will show the Same Message, however, it provides you the ability to Click Yes and Update the cache. To be in the safe side, always verify the server’s key fingerprint before clicking Yes.

SSH Server and Client Most Known Error Messages

Using Linux/UNIX SSH Client

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
da:05:8d:35:00:a5:3e:d9:07:f8:6d:a7:0a:30:7c:3e.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
ECDSA host key for 45.55.128.172 has changed and you have requested strict checking.
Host key verification failed.

Analyzing the Warning…

It’s important to mention that all legitimate hosts (Your VPS Instances) resides under /root/.ssh/known_hosts. It appears that the offending host located at line1.

[...]
Offending ECDSA key in /root/.ssh/known_hosts:1
[...]

Since you are going to reinitialize the connection again, you can safely remove the problematic line using the following command:

sed -i '1d' /root/.ssh/known_hosts

If the problematic key happens to be on line 4, then replace 1 with 4.

Or, run the following command:

ssh-keygen -R YOUR-VPS-IP-ADDRESS

Switch -R will fix the problem by removing the offending host. Now, try to connect again.

Subject Related

By | Wikipedia OpenSSH | ArchLinux SSH | tartarus SSH | DocStore.Mik.ua SSH | WinSCP Error Codes

Building Professional Web Hosting Solution
<< Linux Basic Setup and Configuration Course
>> Configuring SSH-Key Based Authentication Section

section table
  1. Understanding SSH-Keys Based Authentication
  2. Creating SSH-Keys using Putty Keys Generator
  3. Creating Public VPS Droplet using DigitalOcean
  4. Managing Linux VPS Instance via Putty SSH Client
  5. Managing Linux VPS Instance via WinSCP Client
  6. Creating SSH-Keys using Terminal Keys Generator
  7. Switching SSH Password to SSH-Keys Authentication
  8. Uploading Admins and Friends SSH-Keys to VPS
  9. Uploading SSH Public Keys using VPS Panel
  10. SSH Hopping using SSH Agent Forwarding
  11. Deploying Public VPS instance using Vultr Provider
  12. Securing and Hardening SSH Server Configuration
  13. SSH Server and Client Most Known Error Messages
  • Was this information helpful?
  • Yes(0)   No(0)

Filed Under: Linux, Configuring SSH-Key Based Authentication Tagged With: SSH Error Messages, SSH

About Imad Daou

CCNA HUB Founder, Imad has been in IT field since 2007. Currently holding A+, Network+, Server+, Security+, and Storage+. HP, Dell, and IBM Hardware Certified. Pursuing Linux+, LPIC-2, RHCSA, RHCE, AWS, CCNA, and JNCIA.

LEAVE A COMMENT Cancel reply

We're glad you have chosen to leave a comment. All comments are moderated according to our comment policy. Use your real name and not keywords in the name field. Let's have a personal and meaningful conversation.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

Get CCNA HUB Updates!

MISSION

CCNA, Linux, and Wordpress Training Hub. For Students, Network Pros, DevOps, Linux/Wordpress Lovers, and Entrepreneurs. CCNA HUB Articles and Labs will help you build a solid foundation in Network, Linux, and Wordpress. E.g. Linux WHS will show you how to build a Professional Web Hosting Solution using DigitalOcean or Vultr VPS provider.

TAG CLOUD

wordpress.org CMS SSH Client wordpress CMS Wordpress Multisite subnet mask VLSM TCP/IP transmission control protocol T1 switches SSH Agent Forwarding understanding switching transport layer protocols sudo wide area network virtual circuit tcp sockets understanding Routing udp sockets Wordpress Hosting Hub su TCP transport layer VPS Hosting WAN

RSS UPDATES

  • IP Fundamentals
  • CCNA R&S
  • CCNA Labs
  • Linux WHS
  • Wordpress
  • All CCNA HUB Topics

Copyright © 2023 ·Genesis Sample Theme - Genesis Framework by StudioPress - WordPress - Log in

This website uses cookies. By continuing to browse the site, you are agreeing to our use of cookies
  • Home
  • R&S
    • IP Fundamentals
    • Switching
    • Routing
    • IPv4 Suite
    • IPv6 Suite
    • Labs
  • Linux
    • Virtualization 101
    • Basic Configuration
    • Security Measures
    • Database Server
    • Web Server
    • HTTP Tuneup
    • FTP Server
    • Mail Server
    • DNS Server
    • Control Panels
    • Monitoring
    • Backup and Maintenance
  • WordPress
  • About
    • Contact Us
    • Be part of It
    • Under the Hood