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.
|
 |
06-02-2012, 03:36 PM
|
#1
|
LQ Newbie
Registered: Dec 2009
Posts: 12
Rep:
|
rlogin works but rsh with command, gives error
Hi
Hope you don't mind me asking here, this problem is running RSH.. i'm running it in cygwin but the problem would apply to *nix too. I haven't had any luck asking on that mailing list. But I think the problem overlaps *nix completely, the error messages are standard rsh errors. It's only private on my LAN and i'm the only user. So no big security hazard. My question is re this error message.
I have 2 computers. jackw2 and jackw5.
Currently just trying from jackw5 to jackw2
On jackw2,
the inetd super server is running on ports 512,513,514 of jackw5 and those ports are open just to my subnet, so that's not the issue
I can run rlogin.
I can run from jackw5
$rsh jackw2
(as when running rsh with no command, it runs rlogin)
and it goes in with rlogin.
but if I run (still from jackw5)
$rsh jackw2 ls
or
$rsh -l userjackw2 jackw2 ls
Then it says
select: protocol failure in circuit setup
If I look at hosts.allow and hosts.equiv on jackw2
On jackw2 which i'm trying to connect to
$cat /etc/hosts.allow
and the file has (I added that 192.168 line before and after just incase , but it still isn't helping)
ALL : 192.168.1.0/24 : allow
ALL : PARANOID : deny
ALL : 192.168.1.0/24 allow
sshd: ALL: allow
and if I do on jackw2
$cat /etc/hosts.equiv
it says
192.168.1.7 <-- that's jacks5's ip
jackw5
--
|
|
|
06-03-2012, 01:20 PM
|
#2
|
LQ Newbie
Registered: Jun 2012
Posts: 10
Rep: 
|
1. Use SSH
ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network.
2. Winsock error
I can't find it but i remember i read something about a windows API error that generates such a rsh message. But this maybe has already been fixed.
3. hosts_access
man hosts_access
for information about hosts.allow and hosts.deny
delete everything from hosts.allow
delete everything from hosts.deny
add
ALL: 192.168.1.
to hosts.allow (notice that the last octet of the IP is missing)
Last edited by delis; 06-03-2012 at 01:24 PM.
|
|
1 members found this post helpful.
|
06-05-2012, 08:12 AM
|
#3
|
LQ Newbie
Registered: Dec 2009
Posts: 12
Original Poster
Rep:
|
thanks..there may have also been a firewall issue too, 'cos possible the server makes a reverse connection to the client. But that line in hosts.allow helped, and i've removed/commented everything in hosts.deny. And I added hosts to /etc/hosts too.
But anyhow while those errors are cleared up , I now get "Permission Denied" when I do $rsh -l tony host ls
Even though i've got the source host in .rhosts on the dest machine. And of course, that line in hosts.allow
|
|
|
06-06-2012, 09:19 PM
|
#4
|
LQ Newbie
Registered: Jun 2012
Posts: 10
Rep: 
|
A firewall is always a possible reason if a connection to another host does not work.
Check on the remote host if you have a file called .k5login in the homedir of user tony, if yes -> delete it
Delete .rhosts file in the homedir of tony.
Maybe you should give tony a new password to be sure you have the right one.
Delete everything from /etc/hosts.equiv on the remote host, do $rsh -l tony host ls, enter the password and check if this will work.
To avoid confusion either use /etc/hosts.equiv or .rhosts, but not both.
If you use .rhosts at any time notice that it is different from /etc/hosts.equiv because you can restict the remote user names that are allowed to connect. So if you have a .rhosts in the homedir of tony and it has an entry like "+ tony", then only tony FROM THE CONNECTING HOST is allowed to connect as user tony to the remote host.
Sorry for the late reply.
|
|
|
All times are GMT -5. The time now is 02:54 AM.
|
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
|
|