You are not logged in.

#1 2020-08-19 17:10:50

IntrepidAntslayer
Member
Registered: 2020-04-06
Posts: 7

Best Way to Debug SSH

Hi all,

I was trying to set up some SSH on a server on my LAN and nothing was working. I tested my ssh out with the OverTheWire ssh server (for nostalgias sake) and it still didn't work, leading me to believe that my computer is dropping outgoing ssh traffic if ssh won't work on both LAN and WAN.

For example, here is my output for connecting to OTW:

$ssh -p 2220 bandit0@bandit.labs.overthewire.org -v

OpenSSH_8.3p1, OpenSSL 1.1.1g  21 Apr 2020
debug1: Reading configuration data /home/pentral/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
ssh: Could not resolve hostname bandit.labs.overthewire.org: Name or service not known

I tried

sudo iptables -A OUTPUT -d 10.0.10.1/24 -p tcp --dport 2220 -j ACCEPT

to see if I could whitelist outgoing ssh connections but that didn't do anything either.

I know this is incredibly open-ended, so any advice on debuging would be amazing. Thanks in advance.

Offline

#2 2020-08-19 17:23:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Best Way to Debug SSH

No advise yet, but I can connect from here and get as far as a password challenge.

Back up a step.  Can you ping them?  I can.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2020-08-19 17:29:17

IntrepidAntslayer
Member
Registered: 2020-04-06
Posts: 7

Re: Best Way to Debug SSH

Hi Ewaller, thanks for responding,

That's the weird thing, both on my LAN server and their SSH server I can ping them just fine, even on port 2220. That's what leads me to believe there's some problem with my local SSH or firewall config, I just don't know where to begin with debugging.

Thanks again

Offline

#4 2020-08-19 17:46:38

IntrepidAntslayer
Member
Registered: 2020-04-06
Posts: 7

Re: Best Way to Debug SSH

Hi all,

Sorry for being a dumbass, I just had to run sudo with some specific ciphers.

Thanks for the help

Offline

Board footer

Powered by FluxBB