WHen I try to connect with my server endpoint getting connection closed. It should be connected with server endpoint.
Asked
Active
Viewed 1,044 times
-2
-
1Where practical please copy and paste the error message as text rather than linking to a screenshot - it makes it easier for people to help you :) – Tim Oct 18 '19 at 00:02
-
Possible duplicate of https://serverfault.com/questions/39733/why-do-i-get-permission-denied-publickey-when-trying-to-ssh-from-local-ubunt/39735, so check the answers there see if any of them help. Is your username the same on both machines? Show your command, not just the error (and paste text not screenshots please.) – Jeff Learman Oct 18 '19 at 13:19
-
And welcome to ServerFault! It's the perfect place to find answers for this type of question. In the future, try googling for the error message in quotes, like this: `"permission denied (publickey)"`. Chances are good you'll find your question already answered. – Jeff Learman Oct 18 '19 at 13:24
2 Answers
1
Seems like it is asking for the public key as authentication, You need to make sure that the public key of the server where you are accessing from is on the authorized_keys file of your endpoint.
Maruan Awad
- 11
- 1
0
Check the logs for details, selinux may restrict, make sure the "test" user has appropriate privilege.
Ryan
- 107
- 4