Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-04-2013, 05:17 AM
|
#1
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Rep: 
|
Not able to do password-free access to remote machine!
When I run
Code:
ravbholua@ravbholua-Aspire-5315:~$ rlogin 109.202.101.166
it promps me for password as below:
Code:
ravbholua@ravbholua-Aspire-5315:~$ rlogin 109.202.101.166
ravbholua@109.202.101.166's password:
To make password free access, I created a file /etc/hosts.equiv
in the remote machine (ravi.com) as below:
Code:
root@ravi:/etc# cat hosts.equiv
localhost
42.110.54.211
root@ravi:/etc#
But still whenever I run the above command to login to this remote
machine, it asks for password.
Additionally, I also created .rhosts file in my same like-to-like account
in remote machine in home dir. as below:
Code:
ravbholua@ravi:~$ cat .rhosts
localhost
42.110.54.211
ravbholua@ravi:~$
What may be the problem that I am not able to have password-free access.
One important point to be noted:
To know what's my internet IP address is, I got from the below two sites (both gave the same IP address)
Code:
http://www.ipchicken.com/
http://whatismyip.org/
These both sites gave me the same IP address and that is:
42.110.54.211
|
|
|
09-04-2013, 06:07 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685
|
you can check your ip executing ifconfig.
you would better try ssh instead of rlogin
and finally you would need to give us more details: is there any firewall between them, is there any router somewhere? How those boxes are connected to the net?
|
|
|
09-04-2013, 08:04 AM
|
#3
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
you can check your ip executing ifconfig.
you would better try ssh instead of rlogin
and finally you would need to give us more details: is there any firewall between them, is there any router somewhere? How those boxes are connected to the net?
|
Yes you'r right to say that ssh is better than rlogin because of security but now I w'd like to check how r-utilities work.
I am not sure whether I w'd be able to reply to your questions correctly but I am replying what I think to be an O.K. reply.
1) I have ubuntu13.04 installed and seperately I haven't enabled any firewall. The remote box is my VPS (Virtual Private Server) and I installed there Ubuntu13.04 (same as local). There also no firewall is there.
2) I haven't set any router from my side and I don't know if it's somewhere or not.
3)Well , how these boxes are connected!!!
See, I connect my laptop with my cellphone Nokia N73 having Vodafone sim card. This way (dial-up) my laptop is connected to Internet.
Regarding the remote one (VPS), I don't know. I recently purchased it from http://lvpshosting.com/
They provide 100 Mb/s net speed.
Please have a look at the below output of ifconfig:
For my local box:
-----------------
Code:
ravbholua@ravbholua-Aspire-5315:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:38:d0:45:ea
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:493 errors:0 dropped:0 overruns:0 frame:0
TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:85372 (85.3 KB) TX bytes:85372 (85.3 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.224.108.37 P-t-P:10.6.6.6 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4848 errors:0 dropped:0 overruns:0 frame:0
TX packets:5375 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2352345 (2.3 MB) TX bytes:698847 (698.8 KB)
ravbholua@ravbholua-Aspire-5315:~$
For my remote box
------------------
Code:
root@ravi:/etc# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3571 (3.5 KB) TX bytes:3571 (3.5 KB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:155219 errors:0 dropped:0 overruns:0 frame:0
TX packets:118966 errors:0 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:182245690 (182.2 MB) TX bytes:9737063 (9.7 MB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:109.202.101.166 P-t-P:109.202.101.166 Bcast:109.202.101.166 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
Finally looking at the above outputs, I configured the remote box with the ip address as 10.224.108.37 (this is what the above command mentions for local) but still it's asking for password.
|
|
|
09-04-2013, 08:14 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685
|
so remote box has the ip address: 109.202.101.166 and it looks ok (reachable from here too)
your local box has the ip: 10.224.108.37, but I think it is not connected directly to the net but thru your phone. The ip 42.110.54.211 probably belongs to your phone.
|
|
|
09-04-2013, 10:29 AM
|
#5
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
so remote box has the ip address: 109.202.101.166 and it looks ok (reachable from here too)
your local box has the ip: 10.224.108.37, but I think it is not connected directly to the net but thru your phone. The ip 42.110.54.211 probably belongs to your phone.
|
Does the phone ip keeps changing. Today 2 times the below 2 links gave different IP address.
Code:
http://www.ipchicken.com/
http://whatismyip.org/
Just now I checked the 2 links. One gave the same address as mentioned in your post above :42.110.54.211
The other gave different address:123.63.112.169
You can see the screen shot for the 2 links
So, what the issue is? Is the problem because my local box isn't connected to net directly?
Now what's the solution please!!
|
|
|
09-04-2013, 10:37 AM
|
#6
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685
|
you can try the following command on both hosts:
ping <the other host>
traceroute <the other host>
yes, the problem is probably caused by the fact your phone acts as a router (as I see). The ip of your phone (given by ISP) is available from outside, but your local box can be reached only thru your phone.
|
|
|
09-04-2013, 10:59 AM
|
#7
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
you can try the following command on both hosts:
ping <the other host>
traceroute <the other host>
yes, the problem is probably caused by the fact your phone acts as a router (as I see). The ip of your phone (given by ISP) is available from outside, but your local box can be reached only thru your phone.
|
I blindly tried all the IP address related to local box. ping failed for all.
traceroute worked for the 2 below.
Code:
ravbholua@ravi:~$ traceroute 10.224.108.37
traceroute to 10.224.108.37 (10.224.108.37), 30 hops max, 60 byte packets
1 hosted-by.lvpshosting.com (109.202.101.132) 0.018 ms 0.008 ms 0.008 ms
2 tge2-2-1000.edge1.Amsterdam3.as5580.net (78.152.40.225) 4.596 ms !N 78.152.42.133 (78.152.42.133) 4.580 ms !N tge2-2-1000.edge1.Amsterdam3.as5580.net (78.152.40.225) 4.576 ms !N
ravbholua@ravi:~$
Code:
ravbholua@ravi:~$ traceroute 123.63.112.169
traceroute to 123.63.112.169 (123.63.112.169), 30 hops max, 60 byte packets
1 hosted-by.lvpshosting.com (109.202.101.132) 0.018 ms 0.008 ms 0.007 ms
2 78.152.42.133 (78.152.42.133) 16.273 ms tge2-2-1000.edge1.Amsterdam3.as5580.net (78.152.40.225) 7.750 ms 8.001 ms
3 eth1-1.core1.ams1.nl.atrato.net (78.152.44.63) 7.364 ms eth8-7.core1.ams2.nl.atrato.net (78.152.44.159) 7.702 ms eth1-1.core1.ams1.nl.atrato.net (78.152.44.63) 7.353 ms
4 eth1-6.core1.ams2.nl.atrato.net (78.152.34.14) 7.673 ms 7.673 ms 7.664 ms
5 eth1-7.core1.lon1.uk.atrato.net (78.152.44.157) 15.087 ms 15.084 ms eth4-2.r1.nyc1.us.atrato.net (78.152.44.135) 87.770 ms
6 eth4-2.r1.nyc1.us.atrato.net (78.152.44.135) 84.455 ms eth2-4.r1.chi1.us.atrato.net (78.152.34.150) 114.782 ms 107.356 ms
7 eth2-4.r1.chi1.us.atrato.net (78.152.34.150) 114.765 ms TenGE10-3.br03.chc01.pccwbtn.NET (206.223.119.48) 104.024 ms eth2-4.r1.chi1.us.atrato.net (78.152.34.150) 107.291 ms
8 TenGE10-3.br03.chc01.pccwbtn.NET (206.223.119.48) 105.254 ms 102.605 ms 105.651 ms
9 TenGE13-3.br01.sin01.pccwbtn.net (63.218.162.165) 330.614 ms vodafone.te13.1.br01.sin01.pccwbtn.net (63.218.163.170) 326.591 ms TenGE13-3.br01.sin01.pccwbtn.net (63.218.162.165) 334.996 ms
10 * vodafone.te13.1.br01.sin01.pccwbtn.net (63.218.163.170) 327.232 ms 326.236 ms
11 * * *
tn.net (63.218.162.165) 334.996 ms
10 * vodafone.te13.1.br01.sin01.pccwbtn.net (63.218.163.170) 327.232 ms 326.236 ms
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
I am using for the 1st time traceroute. So can't infer what's happening.
What you say please?
Thanks a lot!
|
|
|
09-04-2013, 11:08 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685
|
yes, traceroute worked, but in the first case ip was found, in the second case ip was not found. It means 10.224.108.37 can be reached (but it is the accepted because you tried the host itself), but 123.63.112.169 can not be reached from the host ravbholua. It will definitely block rlogin.
How about traceroute to 109.202.101.166 ?
|
|
|
09-04-2013, 02:18 PM
|
#9
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
yes, traceroute worked, but in the first case ip was found, in the second case ip was not found. It means 10.224.108.37 can be reached (but it is the accepted because you tried the host itself)
|
Pleased to know it can be reached.
Quote:
Originally Posted by pan64
How about traceroute to 109.202.101.166 ?
|
The previous traceroute command which I had run, I ran it from remote box.
Now the one you asked me, that is IP of the remote box.
So, I run it from local box. The output is below:
Code:
ravbholua@ravbholua-Aspire-5315:~$ traceroute 109.202.101.166
traceroute to 109.202.101.166 (109.202.101.166), 30 hops max, 60 byte packets
1 * * *
2 10.171.52.1 (10.171.52.1) 436.089 ms 437.064 ms 517.054 ms
3 10.171.52.109 (10.171.52.109) 518.170 ms 553.023 ms 554.006 ms
4 10.171.30.58 (10.171.30.58) 577.994 ms 577.981 ms 595.978 ms
5 10.171.30.81 (10.171.30.81) 595.962 ms 636.958 ms 636.946 ms
6 10.171.30.92 (10.171.30.92) 655.895 ms 280.841 ms 279.977 ms
7 10.171.30.73 (10.171.30.73) 780.956 ms * 744.971 ms
8 203-88-8-100.live.vodafone.in (203.88.8.100) 804.012 ms 779.992 ms 779.972 ms
9 100.64.0.26 (100.64.0.26) 761.962 ms 779.944 ms 738.929 ms
10 182.19.110.53 (182.19.110.53) 876.862 ms 857.988 ms 838.921 ms
11 * 182.19.115.14 (182.19.115.14) 418.864 ms 478.858 ms
12 * * *
13 182.19.126.25 (182.19.126.25) 695.778 ms 719.855 ms 719.822 ms
14 195.50.122.237 (195.50.122.237) 761.903 ms 761.878 ms 778.992 ms
15 vl-3605-ve-229.csw2.London1.Level3.net (4.69.166.18) 635.953 ms vl-3508-ve-122.csw1.London1.Level3.net (4.69.166.14) 599.878 ms vl-3605-ve-229.csw2.London1.Level3.net (4.69.166.18) 599.890 ms
16 * * ae-1-51.edge5.London1.Level3.net (4.69.139.75) 658.891 ms
17 AS5580.edge5.London1.Level3.net (212.187.138.126) 538.849 ms 581.829 ms 540.847 ms
18 eth1-3.core1.lon1.uk.atrato.net (78.152.44.102) 618.874 ms * 618.904 ms
19 eth7-8.core1.ams2.nl.atrato.net (78.152.44.156) 623.944 ms 600.889 ms 678.895 ms
20 eth1-7.core1.ams1.nl.atrato.net (78.152.34.13) 617.941 ms 479.892 ms 575.932 ms
21 eth2-2.r1.ams1.nl.atrato.net (78.152.44.62) 575.901 ms 581.897 ms 581.867 ms
22 * * *
23 hosted-by.lvpshosting.com (109.202.101.132) 539.898 ms 30g-dp1-r1-alb.global-layer.com (109.202.96.157) 539.864 ms 477.891 ms
24 ravi.com (109.202.101.166) 520.856 ms hosted-by.lvpshosting.com (109.202.101.132) 492.391 ms ravi.com (109.202.101.166) 549.325 ms
ravbholua@ravbholua-Aspire-5315:~$
The above is the output when my remote box is online.
Now, what you'd like to say!
|
|
|
09-06-2013, 07:01 AM
|
#10
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
Awaiting for anyone's reply please!
Thanks!
|
|
|
09-11-2013, 05:18 AM
|
#11
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
yes, the problem is probably caused by the fact your phone acts as a router (as I see). The ip of your phone (given by ISP) is available from outside, but your local box can be reached only thru your phone.
|
One revelation w.r.t. my local IP address. Whenever I ssh the remote server, it messages that last it was connected from this IP address. This can give clue as what IP address is of my computer.
Please see below when I ssh the remote server:
Code:
ravbholua@ravbholua-Aspire-5315:~$ ssh rs
ravbholua@rs's password:
Welcome to Ubuntu 13.04 (GNU/Linux 2.6.32-042stab076.5 i686)
* Documentation: https://help.ubuntu.com/
No mail.
Last login: Tue Sep 10 08:04:49 2013 from 123.63.112.140
ravbholua@ravi:~$
Quote:
Originally Posted by pan64
so remote box has the ip address: 109.202.101.166 and it looks ok (reachable from here too)
your local box has the ip: 10.224.108.37, but I think it is not connected directly to the net but thru your phone. The ip 42.110.54.211 probably belongs to your phone.
|
This IP of my local box (10.224.108.37) it never shows when I ssh to remote box. The IP it shows is similar to what I get when run those links After connecting to my remote box, I ping with the IP of the link or with the IP the remote box says from which last I logged in. But no connectivity.
May one help me to say how to connect back to my local box or may one help me to say what IP address is of my local box which w'd get connected from the remote box.
My much work is pending based on this issue of not able to connect from remote to local.
Last edited by ravisingh1; 09-11-2013 at 05:22 AM.
|
|
|
09-11-2013, 05:50 AM
|
#12
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685
|
yes, that means your local box is behind a router or something. You can reach your local box only thru that router and your router should be configured to do some port mapping (or similar) to redirect packages to your box.
|
|
|
09-11-2013, 08:35 AM
|
#13
|
Member
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291
Original Poster
Rep: 
|
@pan64
You have caught the problem, great. Regarding mapping what you told, any further assistance!
Thanks
|
|
|
All times are GMT -5. The time now is 11:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|