ssh localhost requires password

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
AndrzejB
Level 1
Level 1
Posts: 13
Joined: Sun Sep 10, 2017 10:42 am

ssh localhost requires password

Post by AndrzejB » Mon Jun 18, 2018 1:33 pm

I try install hadoop and hbase (https://www.tutorialspoint.com/hbase/hb ... lation.htm)
I can do for my hadoop user:
Change user to hadoop:
sudo apt-get install openssh-server
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
Verify ssh
ssh localhost

But i can't it for my user.
ssh localhost requires always password

Not helps anwer for https://askubuntu.com/questions/577357/ ... tlocalhost

AndrzejB
Level 1
Level 1
Posts: 13
Joined: Sun Sep 10, 2017 10:42 am

Re: ssh localhost requires password

Post by AndrzejB » Mon Jun 18, 2018 2:48 pm

$ ssh localhost@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:a9i......0JXfI.
Please contact your system administrator.
Add correct host key in /home/andrzej/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/andrzej/.ssh/known_hosts:5
remove with:
ssh-keygen -f "/home/andrzej/.ssh/known_hosts" -R localhost
ECDSA host key for localhost has changed and you have requested strict checking.
Host key verification failed.

Post Reply

Return to “Newbie Questions”