LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2013, 05:17 AM   #1
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Rep: Reputation: Disabled
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
 
Old 09-04-2013, 06:07 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685

Rep: Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820
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?
 
Old 09-04-2013, 08:04 AM   #3
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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.
 
Old 09-04-2013, 08:14 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685

Rep: Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820
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.
 
Old 09-04-2013, 10:29 AM   #5
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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!!
Attached Thumbnails
Click image for larger version

Name:	ipchicken.png
Views:	22
Size:	254.0 KB
ID:	13340   Click image for larger version

Name:	whatismyip.png
Views:	18
Size:	146.3 KB
ID:	13341  
 
Old 09-04-2013, 10:37 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685

Rep: Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820
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.
 
Old 09-04-2013, 10:59 AM   #7
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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!
 
Old 09-04-2013, 11:08 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685

Rep: Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820
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 ?
 
Old 09-04-2013, 02:18 PM   #9
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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 View Post
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!
 
Old 09-06-2013, 07:01 AM   #10
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Awaiting for anyone's reply please!
Thanks!
 
Old 09-11-2013, 05:18 AM   #11
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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 View Post
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 linksAfter 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.
 
Old 09-11-2013, 05:50 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,685

Rep: Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820Reputation: 7820
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.
 
Old 09-11-2013, 08:35 AM   #13
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
@pan64
You have caught the problem, great. Regarding mapping what you told, any further assistance!
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
To access remote machine as if using local machine. ravisingh1 Linux - Software 12 09-01-2013 11:12 AM
Login to remote machine with encrypted password smilemukul Linux - Newbie 6 03-16-2012 03:21 AM
how login to remote machine with out password? bkcreddy17 Linux - Newbie 2 02-16-2009 04:30 AM
Writing to a remote machine without password fw12 Linux - General 1 11-30-2007 10:26 PM
can't access to remote machine abd_bela Linux - Security 3 12-29-2002 10:09 AM

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

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