Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
08-04-2012, 04:04 AM
|
#1
|
LQ Newbie
Registered: Aug 2012
Location: India
Posts: 2
Rep: 
|
Not able to rlogin to remote server?
please find below the details of my system.and outputs , these are the few things which i had done , but still , so please have look and waiting for some advice which can help me out from this problem.
rsh package installed
rsh-0.17-25.1
rsh-server-0.17-25.1
chkconfig --list rsh
rsh on
auth sufficient pam_rhosts_auth.so
append /etc/securetty with "rsh" in bottom of the file.
############
[root@veritas ~]# rlogin veritas2
veritas2: host unknown
Trying krb4 rlogin...
veritas2: host unknown
trying normal rlogin (/usr/bin/rlogin)
veritas2: Unknown host
##############
[root@veritas ~]# /usr/bin/rsh 192.168.20.129
192.168.20.129: No route to host
[root@veritas ~]# ping 192.168.20.129
PING 192.168.20.129 (192.168.20.129) 56(84) bytes of data.
64 bytes from 192.168.20.129: icmp_seq=0 ttl=64 time=0.630 ms
64 bytes from 192.168.20.129: icmp_seq=1 ttl=64 time=1.02 ms
--- 192.168.20.129 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.630/0.825/1.020/0.195 ms, pipe 2
[root@veritas ~]# ssh root@192.168.20.129
root@192.168.20.129's password:
##########
$PATH
-bash: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:
|
|
|
08-04-2012, 06:31 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
Apart from usage of any r.* services being frowned upon this isn't a security issue so I've moved your thread to the Newbie forum.
Quote:
Originally Posted by dwivedi_apurva@yahoo.com
Code:
[root@veritas ~]# rlogin veritas2
veritas2: host unknown
|
... the "veritas2" host name does not resolve to an IP address, locally (/etc/hosts, host-based name server) or remotely (host-based forwarding name server, any remote name servers).
Quote:
Originally Posted by dwivedi_apurva@yahoo.com
Code:
[root@veritas ~]# ping 192.168.20.129
# (..)
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.630/0.825/1.020/0.195 ms, pipe 2
|
... but you can throw ICMP messages at it to show it's alive.
Quote:
Originally Posted by dwivedi_apurva@yahoo.com
Code:
[root@veritas ~]# ssh root@192.168.20.129
root@192.168.20.129's password:
|
... and you can SSH to it.
Quote:
Originally Posted by dwivedi_apurva@yahoo.com
Code:
[root@veritas ~]# /usr/bin/rsh 192.168.20.129
192.168.20.129: No route to host
|
... 'tcptraceroute 192.168.20.129 514' would have been more convenient because it shows the route that actual traffic takes between hosts, if the remote port is open and if you have ensured it is open if it's denied in /etc/hosts.deny and or the firewall.
|
|
|
08-04-2012, 06:41 AM
|
#3
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
maybe devs cut out support for rlogin because it is ancient and insecure. have you considered ssh with keys ?
also, at least with ssh, root login is disabled by default.
Last edited by schneidz; 08-04-2012 at 06:45 AM.
|
|
|
08-04-2012, 08:57 AM
|
#4
|
LQ Newbie
Registered: Aug 2012
Location: India
Posts: 2
Original Poster
Rep: 
|
cat /etc/hosts output
192.168.20.128 veritas.test.com
192.168.20.129 veritas2.test.com
no entry is there in /etc/hosts.deny
For Veritas Cluster Is is mandatory to have rlogin enabled or it can also work with passwordless ssh ????
|
|
|
08-04-2012, 09:20 AM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,417
|
Great. You managed to check 2 out of 4 things.
|
|
|
08-04-2012, 11:46 AM
|
#6
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
To follow up on unSpawn's post: run iptables -L on the machine and see if rsh/rlogin is being blocked by the firewall.
I'd be shocked if Veritas did not work over passwordless SSH, but I've never used it so I don't really know.
|
|
|
08-04-2012, 11:50 AM
|
#7
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by dwivedi_apurva@yahoo.com
cat /etc/hosts output
For Veritas Cluster Is is[sic] mandatory to have rlogin enabled or it can also work with passwordless ssh ????
|
not sure what a veritas cluster is (is it like beowolf ?) but if it is linux it probably has sshd turned on by default (which has nothing to do with rlogin).
what i know of rlogin was that it was a protocol used for logging in remotely to systems. then it was replaced by telnet which added the security of needing a password to login to remote systems. and then ssh replaced that by encrypting the channel and optionally replacing passwords with keys.
|
|
|
08-05-2012, 07:58 PM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
There's a good article here about why not to use rsh+friends, and how to replace them with the ssh equivalents http://www.informit.com/articles/art...p=169465&rll=1
|
|
|
All times are GMT -5. The time now is 06:28 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
|
|