SSH connection refused
Hi all,
I am relatively new to Linux, am running LinuxMint (Katya). I have been able to ssh into my box from outside (including Putty) previously, and can ssh out from my box. For some reason I no longer can ssh in. I've read a lot of the forums and tried a lot like wiping the known_hosts and flushing iptables. Output from iptables -L is: Quote:
I simply get: Quote:
|
Try adding the "-v" option to the ssh command for more information as to why the connection is being refused.
|
Quote:
|
Ok, so i probably should have made that -vvv
|
Quote:
|
-v increases verbosity, -vvv increases it more... you should be seeing some "debug3" messages, im not sure why your not getting that..
try "netstat -tnlp" to see if sshd is listening on the correct port. |
More v's add verbosity (man ssh...). Perhaps the server has some more info in its logs?
Try Code:
grep -Ri ssh /var/log/* |
Quote:
|
You should forward some WAN-facing port to tcp/22 on that box.
|
Remove the "-p xxxx" and try it...
|
Quote:
|
As Juako said, check the port forwards on your router.
Also try "ssh localhost" to try and isolate the problem. You said that it WAS working, and just stopped working? What happened prior to that? Was there an update, a change in router settings, change in sshd_config settings? As Juako also said, check the sshd logs... Im not sure where Mint puts them, so use grep as they suggested. |
Ok, so I tried shh localhost and that works.
The only thing I can think is my friend was using Putty to connect and might not have allowed authenticity or something. He was quite vague. I think this is the appropriate line: Quote:
|
ok, im not sure what the deal is with putty, ive only used it a couple of times.
Quote:
can you try changing LogLevel to DEBUG in /etc/ssh/sshd_config then Code:
tail -f /var/log/auth.log then try and connect again, and post everything that comes up from the blank lines.. |
So I get:
Quote:
|
All times are GMT -5. The time now is 06:10 AM. |