But I never get a login prompt when I do the telnet 192.168.0.99 22. I just get the connection host lost. How do I get a login prompt? Why can't I see when I type? I do have the newest version of puTTY.
|
when i go to my /var/log/messages file after i telnet it has this:
Dec 11 14:22:06 cm sshd[2038]: Bad protocol version identification ' ' from 192.168.0.98. 192.168.0.99 is the windows machine |
Quote:
Code:
shilo@shilo2:~$ telnet 192.168.0.100 22 Quote:
The really strange thing is that your port scanner tells you that there are no open ports. Telnet tells you different. I may have missed it, but what type of router are you running? Possibly it is not configured properly. Are you running iptables on the Linux box? Posibly THAT is not configured properly. On your Linux box, what is the output of: Code:
nmap localhost |
I am running a D-Link 614+. How do I set up iptables? The nmap command gives me this:
Interesting ports on localhost (127.0.0.1) (The 1652 ports scanned but not shown below are in state: closes) PORT STATE SERVICE 22/tcp open ssh 37/tcp open time 80/tcp open http 113/tcp open auth 139/tcp open netbios-ssn 445/tcp open microsoft-ds 3306/tcp open mysql Nmap completed -- 1 IP address (1 host up) scanned in 0.740 seconds |
if you don't mind
man iptables |
When I type man iptables the help file comes up. Is there anything that you want me to do?
|
OK, it seems pretty obvious to me that the ssh daemon is screwed up. It is absolutetly the ONLY piece of this puzzle that hasn't been checked and found working or not a problem.
XP and Putty are OK since cummic can connect to other ssh servers Nmap and netstat both show sshd listenting on port 22, so something is running, but there is no proof it works. Log files don't even show an attempt at logging into ssh. The linux firewall isn't an issue since there are no rules and all policies are set to ACCEPT (so this whole iptables discussion is a red herring) The hardware doesn't appear to be an issue since cummic is running a web server that works (this also covers a problem with port forwarding) So unless anybody has any better ideas, we should be focusing on the ssh daemon. About the only thing we haven't seen is the sshd_config file and I suppose something in there could be goofy. Otherwise my suggestion is a re-install of ssh. |
I removed and re-installed the package from the slackware CD. Still no luck. The sshd_config has not been altered. It is exactly how it came with the slackware distribution.
|
Dang. OK, two things. First, check your host.deny file. I know you said hosts.allow is empty, but if you never checked hosts.deny that may cause an issue. Second, If you'll email me how to connect to your server (IP address or domain) I'll see if I can get a login prompt. This is entirely optional and I DON"T want to log in. I'll just see if I can get a login prompt. You can email me with the button at the bottom of this post.
|
Are you sure you don't miss any mandatory option in putty to connect ?
Did you wait a long time before considering the connection has failed ? |
Quote:
|
Quote:
|
You could try netfilter to see if connection established like
/sbin/iptables -A OUTPUT -o eth0 -d 192.168.0.98 \ -p tcp --sport 22 -j LOG --log-prefix "windows box out" /sbin/iptables -A INPUT -i eth0 -s 192.168.0.98 \ -p tcp --dport 22 -j LOG --log-prefix "windows box in" |
I typed:
/sbin/iptables -A OUTPUT -o eth0 -d 192.168.0.98 \ -p tcp --sport 22 -j LOG --log-prefix "windows box out" and then i got the prompt then I typed: /sbin/iptables -A INPUT -o eth0 -s 192.168.0.98 \ -p tcp --dport 22 -j LOG --log-prefix "windows box in" and it says can't use -o with INPUT. I wait about ten minutes before I decide that I can't connect. I would rather not give the address out. All I can say is another linux box can connect and another xp box with puTTY cannot get a login prompt. I don't know what you mean by this: Are you sure you don't miss any mandatory option in putty to connect ? |
I'm still thinking this is a router issue. Nmap from the host shows the port open. Port scan from the from the XP box shows nothing. As a test, place the Slack box in the DMZ and see if that makes a difference.
|
All times are GMT -5. The time now is 12:21 AM. |