Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2013
    Posts
    23

    SSH Login Problem

    I have reinstalled my vps from solusvm and now when i'm trying to login using SSH its showing the followign error
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ 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 RSA key sent by the remote host is
    f2:34:3e:2c:bb:6a:3d:75:df:9d:1b:74:f5.
    Please contact your system administrator.
    Add correct host key in /Users/user/.ssh/known_hosts to get rid of this message.
    Offending RSA key in /Users/user/.ssh/known_hosts:5
    RSA host key for 208.xxx.xxx.xxx has changed and you have requested strict checking.
    Host key verification failed.
    Now how to fix it??
    i have root access on my dedicate server. Please give me step by step suggesion..

  2. #2
    Join Date
    May 2013
    Location
    India
    Posts
    748
    In your local system, open " /Users/user/.ssh/known_hosts" ( path here is as per the error message ) and then remove line number 5. Try to connect again to the server and it will ask to add the server to known list; type "yes" and hit enter. It will then connect to the server fine. The RSA key stored in the known_hosts file on your local system is changed corresponding to the server ( it is normal after OS reload ). That is the problem here; following above instructions will let you to connect again to the server.

  3. #3
    Join Date
    Dec 2013
    Posts
    23
    Thanks a lot dear. It fixed my problem.
    now i have another problem
    when i login it says "setlocale: LC_CTYPE: cannot change locale (UTF-8)"
    everytime it shows the warning. How to solve it? I am using centos os.

  4. #4
    Join Date
    May 2013
    Location
    India
    Posts
    748
    On your local machine open your ssh client config file as root (usually in /etc/ssh_config or /etc/sshd/ssh_config) and comment this line:

    SendEnv LANG LC_*

    See if that helps!

  5. #5
    Join Date
    Dec 2013
    Posts
    23
    I used the command
    yum install perl
    it showed:
    Failed to set locale, defaulting to C

    how to fix it?

  6. #6
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,303
    Quote Originally Posted by supto_o View Post
    I used the command
    yum install perl
    it showed:
    Failed to set locale, defaulting to C

    how to fix it?
    Open /etc/profile in a text editor
    Code:
    nano /etc/profile
    Add following line
    Code:
    export LC_ALL="C"
    Save the file: Ctrl + O
    Exit: Ctrl + X

    That should solve.
    YagHost - Pure SSD Hosting | Since 2007 | Average Response Time: 15 min
    Web Hosting | Reseller Hosting | Managed VPS Hosting
    99.9% Server Uptime Guarantee | 24/7 Rapid Response Tech Support | 30 Day Money Back Guarantee
    LopHost.com - Web Hosting Tutorials

  7. #7
    Join Date
    Nov 2013
    Posts
    252
    Do you still require any further help on the issue? Feel free to ask.

Similar Threads

  1. SSH login problem after failed installation
    By Nidils in forum Dedicated Server
    Replies: 1
    Last Post: 05-12-2011, 04:44 AM
  2. problem login to SSH
    By netedgetech in forum Hosting Security and Technology
    Replies: 6
    Last Post: 08-13-2009, 08:37 AM
  3. SSH Login Problem
    By newcomp in forum Hosting Security and Technology
    Replies: 5
    Last Post: 11-11-2004, 02:58 AM
  4. ssh login problem to FreeBSD server!!!
    By atul in forum Hosting Security and Technology
    Replies: 0
    Last Post: 06-03-2004, 06:31 AM
  5. SSH/SSHD login problem
    By alltimed in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-31-2003, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •