port 22: no rote to host but in other computer it works!!!!! Please Help
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
port 22: no rote to host but in other computer it works!!!!! Please Help
hi to all know i have a very strange problem and i would like to ask is someone con halpe me please
1º the computer A a server with the Ip x.x.x.215(in the same room and network)
2º the computer B my computer with the ip x.x.x.224(in the same room and network)the COMPUTER WITH PROBLEM
3ºthe computer C of my friend (in the same room and network) ip x.x.x.225
when in my computer (computer B ) i try to connect to computer A the server by ssh it send this message
ssh: x.x.x.225 port 22: No route to host
fine i say the port 22 is not open in my computer B,but is open!!
also i think in the server A the port 22 is not,open but is open!!
i have say to my friend please connect to the server A and he say
i connect ok ,fine the machine A is up also i have verfied the ssh service is ok in the 3 computers
the first thing that i have think 'is a problem with iptables or rules '
if is a problem with this and my friend in computer C uses my IP(x.x.x.224) and he tray to connect via ssh he also will receive the same error
and i have restart your network service with mi ip x.x.x.224 thinking that he will have the same error and is a problem of IP
but NO!!! he can connect without problem and i have put again the IP x.x.x.225 to my friend
fine i think perhaps the cable?
i have take the cable of network of the computer of my friend C and i put it in my coputer B and also the same problem
mmmm extrange
i tray to connect from pc B to other computer perhaps if not connect to other computer the problem is other the network
but i can connect to other servers and the computer of my friend C
x.x.x.225 without problem
is in particular to x.x.x.215 that i can connect from my computer B specifically from my computer ,mmmmmmmm strange!!!!!
i can navigate in internet and see other pages in internet but the pages in x.x.x.215 i can not see nothing , no connection ssh and nothing
i tried to ping to x.x.x.215 and it say
Destination Host Unreachable
and the last thing that i have tray is to connect to computer A the server from computer C , and from the server A connect to my computer the B and didint see it say the same thing Destination Host Unreachable ,is like the two computer( A B) can't see trough the network
i have read a lot of information about this ,i have clean the know host archive,see the iptables,verify port 22,verify th ssh service but nothing , even know i dont know what can be because is specifically my computer even more not my ip ,my computer PLEASE HELP
thank you for your advice and excuseme my bad english
hi thanks for your response i have think that it can be a problem in the configuration also and i have compare the configuration in the computer with the problem the B and the compotur of my friend that connect the computer C
the configuration file of the computer C that work in ssh and can connect to A without problem is
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.zzz.cc.225
broadcast xxx.zzz.cc.255
network xxx.zzz.cc.0
netmask 255.255.255.0
gateway xxx.zzz.cc.1
the configuration file of the computer B that have problems to connect to 215
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.zzz.cc.224
broadcast xxx.zzz.cc.255
network xxx.zzz.cc.0
netmask 255.255.255.0
gateway xxx.zzz.cc.1
the two computer,that work and that didn't work (B and C ) have teh same configuration except by the Ip the B have xxx.zzz.cc.224 and the computer C have address xxx.zzz.cc.225
I was asking for the output of the ifconfig command ... as it will display the current status of all of your network interfaces ... just in case your configuration is not being applied.
Computer B is stating that based on it's current network interfaces settings ... there is no path to get to Computer A.
hi excusame for my late in the response here i send the information that you have ask thank you
this is the ifconfig of computer B
eth0 Link encap:Ethernet HWaddr 00:1c:c0:bc:c4:2e
inet addr:xxx.yyy.zz.224 Bcast:xxx.yyy.zz.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c0ff:febc:c42e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4140 errors:0 dropped:0 overruns:0 frame:0
TX packets:1646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1176389 (1.1 MB) TX bytes:277378 (270.8 KB)
Interrupt:252 Base address:0x2000
the problem is solved thanks
i have solved changing my HWaddr 00:1c:c0:bc:c4:2e
i leave this command in the bootmisc.sh
ifconfig eth0 down
ifconfig eth0 hw ether 00:01:02:03:04:05
ifconfig eth0 up
with this i have change the addres and now i can acces to the server without problem
mi hwaddr was the problem !!!!
thanks for all your help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.