How to setup RSH on Mac OS X?

I need to use rsh to execute a command on a remote Mac. I know SSH is available but I need to use RSH. I already created a ~/.rhosts file and edited the /etc/hosts.equiv file. The Firewall has all ports open.
Every time a run "rsh [host] [command]" I get a connection refused message.
I can't find any good information related to Mac OS X and RSH on the web. HELP! HELP!

Funnily enough, I was trying to get this exact thing working today. The trick it seems, is that you need to have both rshd and rlogind running. Here's a step by step which will allow you to get root to rsh into localhost from localhost. Expanding this should be easy enough with a little reading. Refer to the rsh, rlogin, rcmd and .rhosts manual pages. Good luck.
- download Lingon from sourceforge
- fire it up and open the "shell" plist from the System Daemons list.
- check the enable checkbox
- save the plist
- open the "login" plist from the System Daemons list.
- check the enable checkbox
- save the plist
- open a terminal window
- run $ sudo launchctl load /System/Library/LaunchDaemons/shell.plist
- run $ sudo launchctl load /System/Library/LaunchDaemons/login.plist
- run $ sudo launchctl list | egrep "rsh|login"
- you will see something like this when they are loaded:
$ sudo launchctl list | egrep "rsh|login"
-     0     com.apple.rlogind
-     0     com.apple.rshd
$
- run $ sudo launchctl start com.apple.rshd
- run $ sudo launchctl start com.apple.rlogind
- run $ sudo launchctl list | egrep "rsh|rlogin"
- you will see something like this when it's started (loading and starting are two separate things. If you load but don't start, it won't work. You'll know when they are started, because the number in the first column will NOT be zero if the processes are properly started. 0 means they are loaded, >0 means they are started):
$ sudo launchctl list | egrep "rsh|login"
608     -     com.apple.rlogind
604     -     com.apple.rshd
$
- run sudo su (don't ask me why, but you cannot sudo the below command, you have to be su to run it, hence the sudo su).
- run 'echo "localhost root" >> /etc/hosts.equiv'
- run rsh localhost - and voila:
$ rsh localhost
Last login: Tue Jan 8 23:21:04 on ttys000
bash$

Similar Messages

  • How to setup face time mac to mac

    how to setup face time mac to mac, does the other mac need a different apple id from the other

    I've done same thing but again and agin showing call failed its just not happening.i've got only one FaceTime enable contact , I don't know whether d issue with tht ph or mine.couldnt hv any option to check with other contact

  • How to setup Wireless Clients MAC+Active Directory based acess

    Dear Gents,
    I want to setup Wireless Clients MAC+Active Directory based acess on AP 1242 standalone Wireless series .
    Steps i have configured :
    1) SSID manger  under Open authentication : Selected with EAP.
    2) under advacned Radius : s
    MAC Address  Authentication
    MAC Addresses Authenticated by:
    Authentication Server Only
    3) Server Manger : Current server list
    added the radius ip address 10.1.200.x
    EAP  Authentication
    MAC  Authentication
    Accounting
    Priority  1:  < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  1: < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  1: < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  2:  < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  2:  < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  2:  < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  3:  < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  3:  < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    Priority  3: < NONE >10.113.253.1010.1.200.23410.8.200.1510.15.200.15
    From ACS - Radius  we have choose a Group x( named as Mac-address group )
    All the wireless Client ( laptops ) mac-address are added as add username option and enter username
    as mac-address & enter the mac-address as pwd second option of password TAB.

    Hi Akber,
    I think you didnt understood what i was trying to say here :-( No problem..I will explain my theory again.Your requirment is to autheticate user from ACS internal database (you have already added the MAC address as the username on your ACS internal database) as well as from ACS external database (in your case this is AD).
    What i was saying is when when authetication request comes to raidus server it checks its internal database and if it find a valid username and password (here it will the MAC address and password which you have entered to the ACS database) the ACS will not query the external database (in your case the AD) for authetication.
    You can not have ACS to look in to both MAC and AD database at the same time.
    Hope this clears your doubt.
    Regards
    Najaf

  • How to start RSH on MAC mountain lion? I'm getting connection refused error

    How to start rshd on mountaion lion??
    >mac-29#rsh CMD 'rsh' '10.73.105.131' '-l' 'root' '/bin/mkdir /mnt; echo END'_'COMMAND'_'OUTPUT'
    <<mac-29#rsh|10.73.105.131: Connection refused\r\n

    Wow, no answer yet?  It's been 6 months.

  • How to setup JUnit on MAC OS X

    How can I set up JUnit on MAC OS X. When I followed the instructions that I found, I always get:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/junit/runner/JUnitCore
    How can I do that step by step?
    Thanks.

    Abder-Rahman wrote:
    How can I set up JUnit on MAC OS X. When I followed the instructions that I found, I always get:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/junit/runner/JUnitCore
    How can I do that step by step?
    Thanks.These forums are specific to the Java Programming Language. You're not likely to get a lot of help regarding the set-up of third party libraries here. You'd be better off asking for help from the junit folks.

  • Can anyone let me know how to install hadoop in mac OS X

    Can anyone let me know how to install hadoop in mac OS X

    Read http://shayanmasood.com/blog/how-to-setup-hadoop-on-mac-os-x-10-9-mavericks/

  • HT1296 I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    You copy them from your old computer or your backup copy of your old computer.
    The iphone is not a backup/storage device.

  • How to setup talktalk mail in i mac

    how to setup talktalk mail in i mac

    thiven wrote:
    how to setup talktalk mail in i mac
    Using these settings:

  • How to install and setup macports for mac os mavericks, for open vpn purpose.

    Hi Guys! I'm using OS Mavericks now in my macbook pro, I need help and suggestions regarding open vpn application that i can use for my laptop so that i can access my server in my office even im out of town and country. I found vpn network setup in network preference but i dont know how to setup. also others are suggesting macports for mac but still difficult to analyze and setup. I need to troubleshoot in terminal which i'm not familiar with commands. Please help me guys! Please!

    You're going to need to figure out the required settings for the VPN server you're working with, whether you use the standard client or some add-on.  That information is a prerequisite for a VPN client; for any VPN client. 
    If the standard VPN client present in OS X doesn't and cannot be gotten to work, then something like IPSecuritas or the OpenVPN client would be a typical fallback choice, but IPSecuritas is far more flexible — which means far more complex.  These clients are available as application downloads; no Brew or MacPorts required.
    Is this your server you're connecting into?  Or is somebody else controlling it? 
    If it's your server and thus your VPN server, then you'll have the option to get either the VPN server in the gateway firewall box or the VPN server running in the target system configured to allow the OS X VPN client to work.
    If the server is controlled by somebody else, ask them for the settings necessary for the VPN client.
    As Barney-15E states, using Brew or MacPorts won't help, unless you're installing the VPN client that way — which would be a little unusual — and you're still going to have to figure out the L2TP / IPSec or PPTP or other settings here, irrespective of how the VPN client gets installed.

  • How to setup "Back to My Mac" on iCloud.

    Does anyone know how to setup Back to My Mac on iCloud? I never had MobileMe, and all the instructions I find online are for MobileMe. It seems like a really cool concept, though.
    The computers I have are a Mac Pro and a Macbook Pro. Both running the latest update of Lion.

    I've done that. It goes through as if there are no problems, but I still can't use it. Also, when I try to login using my apple ID, it doesn't work. I've gone to the Airport Utility and tried setting up my apple ID with the mobile me tab, but it asks for my me.com username and password. I never had a password for it, because I setup using cloud. I put in my apple ID password anyway, but there is still no luck. It tells me my username or password is incorrect.

  • How to Setup Mac mail on Blackberry

    Hi
    I have Blackberry 9700 i am trying to set my Mac email on it. Its every time says email or password in wrong.
    Even i have reset my icloud and email password too.
    Please anyone have any idea how to setup mac mail on Blackberry fr vodsfone no help from mac or vodafone staff spen 5hrs on phone
    Any one can help

    I have mac email..
    Al working fine till few months.
    I change my password or mac email on icloud website
    then when i change my blackberry webpage my email passpowrd from thm its not working my email.
    Each time i add my email on blackberry its says its wrong email addres or password.
    Talk to blackberry people they told me its on mac email issue. as they dont have any probem.. I try to setup gmail account its work fine too.
    But each time i try to set up mac account know error know...
    My mac account work fine on my imac ... on my ipad... on my iphone all fine with new password.

  • Trying to setup wifi, how do I get the mac address from ipod touch 5th gen?

    trying to setup wifi, how do I get the mac address from ipod touch 5th gen?  cannot get to the setting screen as it is trying to connect to itunes.

    If yo are setting up the iPod vai wifi you have to connect to a network that does not use MAC address filtering.
    After it is set up yu can get the MAC from Settings>General>About>WiFi Address

  • How to setup QoS for IP/Mac Address WRVS4400N

    I need some help setting up QoS for two Cisco/Linksys devivces on my network. 
    Network devices are Comcast SB6120 modem into WRVS4400n (v2.0.2.1 firmware) that divides into one 24 port gigabit Netgear unmanaged switch, 1 port into AT&T Cisco Microcell, 1 port to HP Officejet 7700 wired printer.  Unmanaged switch has approx 10 devices attached (including another 8 port unmanaged gigabit switch).  3 static leases are defined for the network for three devices (HP OJ 7700 printer, Cisco/Linksys PAP2 VOIP adapter, windows home server v1.  DHCP is handled by WRVS4400n.  Comcast service provides 12mbps of service upstream, 4mbps downstream.
    Need to setup QoS for AT&T Microcell and PAP2 VOIP adapter.  The real issue that I can't figure out how to configure is IP based priority access.  I can do rate control for an IP address but can't figure out how to specify priority control for an IP.
    Here are my the current config questions:
    1.  Bandwidth management page:  For the microcell device plugged into port 1, do i set the default CoS to 4 or 1?
    2.  Bandwidth management page:  Should the bandwidth management type be set to priority?  I assume yes since I need to define the UDP/TCP ports for priority.  The major issues here are
    a) one of the ports the Microcell uses is secure https (TCP 443) which is could also be used by any other internet device. 
    b) can't specify priority for the PAP2, since it's behind the unmanaged 24 port switch
    3.  QoS setup page:  Do I need just 2 queues (one for the port ID for the Microcell and one for the IP address of the Linksys adapter)?
    4.  QoS setup page:  I assume I need to define DSCP for the unmanaged switch but not sure how to tie a queue to an IP address
    4.  QoS setup page:  Shoud priority 0 be set for the most important queue (microcell) and the priority 1 CoS be for the VOIP adapter?  Again, not sure about how to define priority by IP address.
    5.  DSCP setup page:  As far as I can find, there's no documentation on how to setup this page.   

    That's what I do. I keep it simple, one calendar, one set of contacts.
    iCloud is really the simplest way to go, as it will sync your (eventual) single Contacts and Calendar across all your devices.
    I would:
    Figure out which single calendar (in Calendar.app) and contacts (in Contacts.app) that you want to keep.
    I'd make a backup of each one. For example,
    in Contacts, File > Export... > Contacts Archive...
    in Calendar, File > Export... > Calendar Archive...
    Make a backup of the other calendar events and contacts that you want to save.
    delete all the contacts and calendars from your phones and your iPad.
    add the contacts and events from the backups to the single calendar in Calendar.app and your contacts in Contacts.app on your iMac. There is probably some way to export the contacts and events you are adding, and then combine them, but you could also just add them manually.
    Then when you configure all your devices for iCloud, they will be all synced automatically.
    Message was edited by: arthur

  • Apple TV, iPad, iPhone home sharing how to wake a sleeping mac from these devices? Can wake from iMac using remote desktop fine.

    Hello all!
    To give you an over view of system I have, iMac, Mac Mini, Apple TV 3, ipad 1, IPhone 4.
    I have all music and video stored on the mac mini that is in the roof and I control it using apple remote desktop from my iMac. I can wake it no problem etc and I have now been using it with home sharing and it works fantasticly with the apple tv and ipad etc but the issue is as follows.
    How can I wake the mac mini in the roof from the apple tv when it dissapears off the ipad / apple tv when it goes to sleep?
    Its the only issue I can see in an amazing setup that I think apple needs to advertise more as its flipping brilliant!
    I hope you can help me with this other wise I will have to leave the mini on 24/7 which is poor!
    Please don't say turn wake fromlan on the mini as its on and working.
    Thanks for any help!!
    Spoony

    This problem, for reasons unknown to me, has resolved itself on its own. After several attempts finally everything decided to work. How does stuff like this happen? Thank you.

  • How to setup a static IP for a wireless printer

    This problem has been ongoing for several versions of OS X and the last five printers I've had and I'm finally over messing with it.  For some reson, when using a wireless printer with OS X this is a repetetive problem, and I think if I configured the printer to a static IP address instead of using DHCP, it might work better.  At least once a week, if not more often, I'll print something and get the ubiquitous Dock error of "Printer is not connected".  The printer is still in Preferences, but if I delete it, then it doesn't show up as it should for selection.
    The only way to fix this is reboot, and then the printer shows up again in Preferences.  I select it and all is well again...until a few days pass and the same thing happens again.  Using an HP LaserJet P1102w, still a current model, but it doesn't matter which printer I use.  I also have an Epson Artisan 725 and the same thing happens with it about once a week.  Also, this happens from both my Mac and my wife's Mac, so it's not an issue with just my machine.
    I've searched for documentation on how to setup a static IP address for a wireless printer with the Airport Extreme, but all I find are tutorials on how to do it with an ethernet hard-wired printer.  Any help would be greatly appreciated.

    You could set up your router to do manual assignment of IP address instead of using DHCP, but that is a PITA, because then you'd have to manually set up IP for all your devices.
    If you have AirPOrt Extreme, you could do this:
    In your Apple TV, go to the Settings >> About and write down the MAC address of your ATV
    Start up the AiPort Admin Utility
    Go to Network tab
    click + in the DHCP reservations
    Choose an IP you want for your ATV & Enter the MAC address
    From now on, this IP address will be reserved to the MAC address and only your ATV will be able to get it, no other device will.
    It is not a static IP in a true sense, but behaves just like one.
    Works great for me...
    If you don't have a AP Extreme, I'm sure other routers will allow you do reservations too.

Maybe you are looking for