ssh localhost requires password

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
AndrzejB
Level 1
Level 1
Posts: 40
Joined: Sun Sep 10, 2017 10:42 am

ssh localhost requires password

Post by AndrzejB »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
AndrzejB
Level 1
Level 1
Posts: 40
Joined: Sun Sep 10, 2017 10:42 am

Re: ssh localhost requires password

Post by AndrzejB »

$ 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.
Locked

Return to “Beginner Questions”