Welcome to the Linux Foundation Forum!

Lab 5.5 - ssh prompts for password to install keys

Options

I'm working on lab 5.5 with CentOS7. When I run ssh-copy-id localhost, my system tries to log in with the keys but then prompts me for a password.

I have already set /etc/ssh/sshd_config -> PermitRootLogin to without-password.

Comments

  • lee42x
    lee42x Posts: 380
    Options

    Hi, Sorry to hear there is a challenge. You are having an issue with section 5.5 parallel ssh ? In step 5.5.2 the "ssh-copy-id localhost", is only required if not already done in the previous steps.

  • AudieMoradi
    Options

    Thanks lee42x. I managed to resolve the issue. I deleted the root's /.ssh directory and that appears to have fixed it. I suspect it may have been the root's personal ssh config. Do personal ssh configs override the sshd_config? I think they might.

  • lee42x
    lee42x Posts: 380
    Options

    Yes, the $HOME/.ssh/config configuration is the last to be applied so its values will be applied. Also worth mentioning, if you have the same parameter specified twice in a single ssh config file, the last entry will be true..

Categories

Upcoming Training