LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2003, 08:00 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Connection from Win98 to RH9 through putty (SSH)


I don't understand why I cannot connect from Win 98 to Red Hat 9 using putty(ssh).

According to nmap on RH box:
[root@localhost sbin]# nmap 192.168.1.100
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on (192.168.1.100):
(The 1593 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
79/tcp open finger
80/tcp open http
111/tcp open sunrpc
139/tcp open netbios-ssn
443/tcp open https
3306/tcp open mysql
6000/tcp open X11

SSH port # 22 is open.
Linux IP: inet addr:192.168.1.100

Both Linux and Windows boxes are under LinkSys router.
Windows Ethernat Ip is: 192.168.1.101.

So From Windows 98 I'm trying to connect using Putty. I entered the IP address: 192.168.1.100 and choosed Port 22 for connection.
After 1 min, I received error message that the connection can not be establishe

Why I cannot connect to Linux box? Any help will be appreciate.

Thanks
 
Old 07-06-2003, 08:26 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
check:

/var/log/secure
/var/log/messages

if you iptraf, run this as root:

iptraf -s eth0

err, can u ping your linux box from your windows pc? vice versa?
 
Old 07-06-2003, 08:50 PM   #3
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Try running /etc/initd/sshd restart on the Redhat box and then try to ssh in
 
Old 07-06-2003, 09:09 PM   #4
s3szy
LQ Newbie
 
Registered: Oct 2001
Posts: 6

Rep: Reputation: 0
What it prompt wrong messages ?
 
Old 07-07-2003, 06:23 AM   #5
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by bax
Try running /etc/initd/sshd restart on the Redhat box and then try to ssh in

I restarted, still can't connect.

[root@localhost init.d]# ./sshd stop
Stopping sshd: [ OK ]
[root@localhost init.d]# ./sshd start
Starting sshd: [ OK ]
[root@localhost init.d]# ./sshd status
sshd (pid 30585) is running...
[root@localhost init.d]#
 
Old 07-07-2003, 06:24 AM   #6
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by s3szy
What it prompt wrong messages ?
Error Message:
" Unknown Network Error"
 
Old 07-07-2003, 08:55 AM   #7
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Lower your security level on the Redhat box
 
Old 07-11-2003, 05:53 AM   #8
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by born4linux
check:

/var/log/secure
/var/log/messages

if you iptraf, run this as root:

iptraf -s eth0

err, can u ping your linux box from your windows pc? vice versa?
Yes. I can ping
 
Old 07-11-2003, 07:49 AM   #9
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Just for giggles try telneting to port 22 from the windows box (telnet hostname 22).

If you are running nmap from the linux computer then that doesn't mean that it'll accept something from a different computer. Still sounds like a firewall problem to me. Run nmap from the machine you are sshing to (or just telnet to that port)

You will need something like
iptables -A INPUT -p ALL -i eth1 -s 192.168.0.0/24 -j ACCEPT
in your firewall script (with whatever IP's your using for your LAN).

Or just /etc/init.d/iptables stop and see if it works.
 
Old 07-12-2003, 08:21 PM   #10
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
I changed the security level to no firewall and can login now. But is it a good idea... Now it is much easier to hack the box..

Any advises ?
Thanks
 
Old 07-12-2003, 09:47 PM   #11
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Now you need to setup a good firewall.

www.netfilter.org

or you can download something like firestarter (look up on google) and have it make you a firewall. Just keep whatever you need open open.

Seabass
 
Old 07-12-2003, 10:35 PM   #12
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Don't waste your time w/ those individual firewalls. Install OpenBSD on an old box as your network's firewall and let the most secure operating system in the world take care of you
 
Old 07-12-2003, 11:35 PM   #13
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
iptables will work just fine
 
Old 07-13-2003, 12:20 AM   #14
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
iptables will work just fine but I can't help pimping OpenBSD. It's designed w/ security in mind from the ground up and is far easier to get running IMHO. All you have to do is read the OpenBSD FAQ and the man pages and you will be up and running. Linux is great for the desktop and you can secure it w/ some effort but OpenBSD is built w/ security in mind w/ everything turned off by default. So you only turn on what you need. Also, pf is FAR easier to use than iptables.
 
Old 07-13-2003, 01:03 AM   #15
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
I know...I'm just pimpin on RH.

When it comes to security openbsd is best
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh over internet connection sharing (win98) andra Linux - Networking 1 09-20-2005 11:37 AM
Putty and ssh connection hangs KidKootenay Linux - Newbie 7 09-03-2004 11:30 PM
Sharing a win98 internet connection with RH9 sausagejohnson Linux - Networking 3 06-09-2004 12:47 PM
putty SSH connection deWin Linux - Newbie 3 03-26-2004 09:47 AM
my PuTTY connection over ssh is too slow. chris.pickett Linux - Networking 2 11-22-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration