I have an SSH server running on my PI.

On my other device I run ssh ucyt5040@localhost -p8022. It asks for a password. I enter my password. I get Permission denied (publickey,password,keyboard-interactive).

I've tried changing my password many times from the configuration GUI.

It never works.

1 Answer 1


On my other device I run ssh ucyt5040@localhost

localhost is the network address of the machine you are using.

You need to give the network address (by name or IP address) of the Raspberry Pi running the SSH server.

  • Both devices are on the same network. Why would I need to do that?
    – UCYT5040
    Aug 4, 2022 at 20:17
  • 3
    @UCYT5040 For the same reason, you don't ring your doorbell to get someone to answer the neighbor's door. You are both on the same street/neighborhood but only one communicates to the neighbor. Or You wouldn't mail a letter to your address expecting your neighbor to receive it. Aug 4, 2022 at 21:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.