Author Topic: SSH Login Rejected  (Read 8050 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SSH Login Rejected
« on: January 29, 2015, 05:46:10 AM »
Hi,

It's weird on my server after the server was rebooted. because of power problem at my office, it caused that servers shutdown immediately and wake up on LAN/power mode. The main problem is I can't remote my server via ssh.

Quote
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
bc:41:xx:67:4c:xx:ab:xx:d2:58:axx:64:5f:xx:f2:xx.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:2
  remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R xx.xx.xx.xx
RSA host key for xx.xx.xx.xx has changed and you have requested strict checking.
Host key verification failed.


I know that is because of any change in ssh config. In fact, it's because of the server rebooted or shutdown improperly.

And, All the running domain's will turn to Apache CentOS default page..

Bugs at CWP config?


thanks

Offline
***
Re: SSH Login Rejected
« Reply #1 on: January 30, 2015, 02:24:03 AM »
Quote
The main problem is I can't remote my server via ssh.

Remove the content of /root/.ssh/known_hosts
If you wanna avoid that next time, create a startup script.
A power down is never a software problem.

Create a new file under /etc/init.d/, call it anything, myscript.sh as example.
Add it to the rc.local like this echo "/etc/init.d/myscript.sh" >> /etc/rc.local

While is not the proper solutions, it works.

My recommend is to don't wait for solutions when you have a problem.
Put the solution before it, bui a SAI for your office.
« Last Edit: January 30, 2015, 02:26:28 AM by erm3nda »
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
***
Re: SSH Login Rejected
« Reply #2 on: January 30, 2015, 02:25:34 AM »
Quote
And, All the running domain's will turn to Apache CentOS default page..

Run the vHost rebuild function on your panel.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.