A
A
andrei20182018-11-21 19:30:17
linux
andrei2018, 2018-11-21 19:30:17

How to find out why SSH either asks for a password or not?

SLES12sp2 - Two virtual machines (copies) on two physical. computers.
You need a passwordless login from one to another via SSH (for RAC) and vice versa.
Tortured today these two machines under two users:
From one to the other works:
[email protected]> ssh-keygen
file path and passphrase answer Enter
ssh-copy-id node2
password 1
ssh node2 date
Gives the date without a password!
And on the other one it doesn't work:
[email protected]> ssh-keygen
file path and passphrase answer Enter
ssh-copy-id node1
password 1
ssh node1 date
asks for a password before issuing the date...
I deleted the ssh folders 10 times and tried it with passphrase (with an ssh agent), rebooted the computers and the machine's Wirth.
What could be the difference?
Now I tried it on other machines, under another user THE SAME THING to do and it turned out:
5bf5c44226944106577972.jpeg5bf5c44d62dde372391703.jpeg
But I would like to understand how to diagnose why half a day was gone today and evening.
Of course, tomorrow, at work (on faulty machines), I'll try to re-create users, maybe they're the problem.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andrei2018, 2018-11-22
@andrei2018

Recreated users. Everything worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question