L
L
lohmag2014-07-25 09:26:56
SSH
lohmag, 2014-07-25 09:26:56

Why does ssh key authorization sometimes fail?

I need a script to be executed from one server on another, I decided to use key authorization in ssh for this.
ssh ip-address ./script.pl
Everything works fine, but sometimes, for some reason, authorization does not pass, but asks for a password. If you click a few times, then it diverges and works. But such glitches spoil the entire operation of the mechanism, has anyone encountered this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2014-07-25
@merryjane

Try to run at the time of the problem:
to see what happens in fact.

L
lohmag, 2014-07-27
@lohmag

The problem was that the user had uid 0 as root, and when you log in as root, sometimes you get under this user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question