Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 4630  / 3 Years ago, sun, july 18, 2021, 12:47:03

I installed SSH server and client using the commands in Ubuntu 13.10



sudo apt-get install ssh


But then I am able to connect using my client to any other ssh server on the network by



ssh username@hostname


But when I try connecting ssh-client on my laptop to itself. It says permission denied, Please try again.



$ : ssh [email protected]
[email protected]'s password:
Permission denied, please try again.


Can someone help me with this.


More From » ssh

 Answers
4

In your /etc/ssh/sshd_config




  1. make sure you have the following PasswordAuthentication yes # Default anyway

  2. make sure the users is not in DenyUsers and DenyGroups.



This cloud be cause by various reasons (misconfiguration or permissions), the best way is to start both sshd and ssh client in verbose mode.



For example:



sshd



Stop sshd and then run sudo /usr/sbin/sshd -Dd



Client



Connect => ssh user@host -vvv



Look at the debug output and it'll point you to the root cause, most likely.


[#29416] Monday, July 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
afisird

Total Points: 193
Total Questions: 112
Total Answers: 111

Location: Angola
Member since Mon, Jul 12, 2021
3 Years ago
afisird questions
Wed, Jul 27, 22, 03:53, 2 Years ago
Sun, Mar 12, 23, 18:05, 1 Year ago
Sun, Dec 11, 22, 01:19, 1 Year ago
;