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-18-2005, 11:22 PM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
ssh and ftp probs


HI,

i m using rhel3 on both pc and try top connect using ftp and ssh service. i have started portmap services on both the PC. also ssh and vsftpd server.

when i try to login with ssh i m getting following error.

[root@mail root]# service iptables stop
[root@mail root]# service iptables status
Firewall is stopped.
[root@mail root]# service sshd status
sshd (pid 5049) is running...
[root@mail root]# ssh 192.168.100.11
ssh: connect to host 192.168.100.11 port 22: No route to host
[root@mail root]#

## portmap is open of client Pc [192.168.100.11]

why it showing me "No route to host" error? it a new installed OS. iptable is off.


also, here is the hosts file configration.


## here the /etc/hosts file:

[root@mail etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 mail.netbeez.net mail localhost.localdomain localhost
192.168.100.20 host.redhat.com host
192.168.100.10 mail.netbeez.net mail
[root@mail etc]#


Tried using vsftpd server.

[root@mail root]# service vsftpd status
vsftpd (pid 12114) is running...
[root@mail root]# ftp 192.168.100.11
ftp: connect: No route to host
ftp> quit
[root@mail root]#

Please help me to get this issue slove. i have to use ssh and ftp services to do other stuff.

thanx in adv.

-/Hitesh
 
Old 07-18-2005, 11:49 PM   #2
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
are you able to get a ping response? it looks like you may have a problem 'finding' the system (no route to host)

in the information you provided it was from host 'mail'. are the correct services (ssh,ftp) running on the system (192.168.100.11)you are trying to connect to?

if you are on 192.168.100.11 are you able to connect to host 'mail' on ssh?

Last edited by mhallbiai; 07-18-2005 at 11:53 PM.
 
Old 07-18-2005, 11:55 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Do you have a route to that network block configured?

Most likely you need something like
Code:
route add -net 192.168.100.0 netmask 255.255.255.0 dev eth0
 
Old 07-19-2005, 10:45 PM   #4
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
thnax for quick reply.

ya i can ping to both the system. but the porbs is when i try to connect throguh ssh ot ftp i m getting same error messsages on both the pc..(no route to host) and must tell you i have reinstall on both ther pc.

so i do not think so i have to add route entry on both the pc. preiviously it was working nice. so still unsure what to do.

one more i have connect both the pc throgh HUB, NOT peer to peer. i think it might cause the probelm.

pls guide me...

thanks again....

Hitesh
 
Old 07-20-2005, 10:14 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The hub is not causing your problem. Hubs do not in any way change any data on the wire. Please post the output of the 'route' command here.
 
Old 07-21-2005, 06:48 AM   #6
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Hi Matir,

thankx for help. sorry, i forget to tell you that, i have installed RHEL3 with LVM parttion on 1 of partiton.

i made partition installating time.

/boot [normal] [nt in lvm]

one PV partiton 4000 GB

in that i have made one gruop with name of "rest001" [LVG] and under that i made 2 parttition with

/ [root]
swap 512

it installed nice. but i can not access normaly. mean i can login with ssh ot telnet, etc. ONLY PING.

I reinstall rhel 3 with normal partiton and now it working nice.

now questions.

1)why it was ot working with LVM. partiton.

what else i can do to make this service up?

thankx for help.....

Hitesh
 
Old 07-21-2005, 08:55 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
LVM has nothing to do with it. You must've changed something else in the reinstall.
 
  


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
ftp probs dellcom1800 Linux - Networking 9 02-10-2005 09:23 AM
ulimit over ssh probs Yerzhan Linux - Software 1 12-05-2004 03:11 PM
Crontab and FTP probs hcclnoodles Linux - Software 1 08-23-2004 01:18 PM
Annoying Newbie with FTP Probs! mort Linux - Newbie 2 08-01-2002 06:27 PM
ftp server probs Ricardo77uk Linux - Networking 0 07-31-2001 02:56 AM

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

All times are GMT -5. The time now is 04:01 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