Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 6260  / 2 Years ago, fri, september 16, 2022, 1:15:12

Hi some time back I asked this question and made a lot of changes to secure my system. Now I need to make a dummy account and give ssh access of this account to a friend. But I am unable to receive any incoming ssh connections. I can ssh to any server via my computer but can not ssh to even localhost. I am sure its due to some settings I changed in a bid to make my system more secure but know I don't remember those changes.



For one, I have disabled ufw. Also there is nothing blocking any user in /etc/ssh/sshd_config or in /etc/hosts.allow or /etc/hosts.deny.



I have attached the output of ssh -v localhost here. I narrowed down the problem to debug1: SSH2_MSG_SERVICE_ACCEPT received by comparing my output with this output on a friend's computer.



Edit 1: This is the output on using ssh -vvvvvv localhost



Any help is appreciated.


More From » 12.04

 Answers
5

Try re-installing sshd with a purge:



sudo apt-get remove --purge ssh-server
sudo apt-get install ssh-server


The most probable root cause is a botched config in /etc/ssh/ssh_config. A purge would remove this file, and give you a blank slate, hopefully fixing your issue.


[#29894] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sipwing

Total Points: 245
Total Questions: 100
Total Answers: 118

Location: Aland Islands
Member since Thu, Oct 22, 2020
4 Years ago
sipwing questions
Sun, May 29, 22, 22:00, 2 Years ago
Fri, Jun 24, 22, 08:46, 2 Years ago
Fri, Dec 23, 22, 00:04, 1 Year ago
;