LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-07-2006, 05:01 AM   #1
dinesh
LQ Newbie
 
Registered: Dec 2006
Location: Chennai
Distribution: Redhat 9,FC5
Posts: 1

Rep: Reputation: 0
About rsh



In our project we want to use rsh for remotely logging on to a machine and execute commands.But we are getting the message "Permission denied" ,when we give
"rsh [host] [command]" in the terminal.So if anyone knows how to use rsh and remotely execute commands on other machine,please give me complete details.If any seperate configuration is needed,please furnish details about that also.
 
Old 12-07-2006, 09:58 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
added firewall info

The remote host may be denying you due to the hosts.deny and hosts.allow entries or your remote server isn't listed in /etc/hosts.equiv. Read through the man 5 hosts_access manpage. Also check if the remote host has the rshd daemon running. Also check if rshd access is controlled by the xinetd daemon. Also check the PAM configurations and the logs on the remote server. Also check if the the firewall is allowing you to connect.

Consider using ssh instead of rsh. Rsh is very insecure. I feel like I have committed a mortal sin telling you anything about it.

Last edited by jschiwal; 12-07-2006 at 10:17 PM.
 
Old 12-07-2006, 10:00 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Can you give more details?

Why do you want to use rsh? AFAIK, rsh is insecure - if possible you should use ssh.

Is rsh installed? Try "which rsh" or "whereis rsh" to find out. Do you have the correct permissions to execute rsh?

Is the rsh port open on the remote machine? You need port 544 open. Is the rsh daemon running on the remote machine?

See the man page for rsh, and search google for more information.

What distro are you using? Please put this in your profile, it helps us to answer your questions.

--Ian
 
  


Reply



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
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
rsh ziox Linux - Networking 1 10-27-2004 06:11 PM
rsh rightsidedown Linux - Newbie 3 07-16-2004 03:08 PM
how to use rsh?? nqduy Linux - Networking 2 08-21-2003 02:00 AM
please help with rsh slice4e Linux - General 5 08-19-2003 12:49 PM

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

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