AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  which port should be open for rsh ?

    Posted Fri February 11, 2011 06:43 AM

    Originally posted by: big


    Hi,
    on AIX 6.1 , which port should be open for rsh commande ?

    When I issu the following :

    Code:

    rsh myremoteserver -l oracle ls
    it hangs until I issue ctrl+c.

    What should I verify ?

    Thank you.
    #AIX-Forum


  • 2.  Re: which port should be open for rsh ?

    Posted Fri February 11, 2011 07:51 AM

    Originally posted by: tony.evans


    Port 514.

    Make sure rsh is enabled in /etc/inetd.conf
    Make sure DNS is working properly, or that all hostnames and IP addresses involved can be resolved forwards and backwards.
    Make sure the relevant user settings are correct for the user you're connecting to.
    #AIX-Forum


  • 3.  Re: which port should be open for rsh ?

    Posted Fri February 11, 2011 08:11 AM

    Originally posted by: big


    Thank you.
    I have this :
    code
    grep rsh /etc/inetd.conf
    #shell stream tcp6 nowait root /usr/sbin/rshd rshd
    #kshell stream tcp nowait root /usr/sbin/krshd krshd
    [/code]
    Is rsh enabled ?

    What do you mean by :
    code
    the relevant user settings are correct for the user you're connecting to
    [/code]
    How to verify ?

    Thank you.
    #AIX-Forum


  • 4.  Re: which port should be open for rsh ?

    Posted Fri February 11, 2011 08:39 AM

    Originally posted by: tony.evans


    Well, since rsh isn't enabled it's never going to work.

    But you also need to ensure the user you're trying to rsh to is allowed to login remotely.

    I suggest, since you're not sure of these basic issues, you do some reading, there are security implications with enabling rsh, and it's worth understanding those before moving forward.
    #AIX-Forum


  • 5.  Re: which port should be open for rsh ?

    Posted Fri February 11, 2011 10:41 AM

    Originally posted by: big


    Thank you.
    #AIX-Forum


  • 6.  Re: which port should be open for rsh ?

    Posted Mon February 14, 2011 06:42 AM

    Originally posted by: big


    Hi,
    for "you do some reading" do you have a URL link ?

    Thank you.
    #AIX-Forum


  • 7.  Re: which port should be open for rsh ?

    Posted Mon February 14, 2011 07:31 AM

    Originally posted by: tony.evans


    Start with

    man rsh
    man rshd

    Maybe the AIX System Management Guide: Communications and Networks

    Maybe Google.

    If possible, I would advocate the use of ssh over rsh. It brings it's own set of challenges, but can alleviate many of the issues with rsh (not least, issues to do with trusts and DNS).
    #AIX-Forum


  • 8.  Re: which port should be open for rsh ?

    Posted Mon February 14, 2011 10:36 AM

    Originally posted by: morsing


    Hi,

    If it's just hanging it's likely to be a network problem. Blame your favourite network team...
    #AIX-Forum


  • 9.  Re: which port should be open for rsh ?

    Posted Mon February 14, 2011 11:02 AM

    Originally posted by: tony.evans


    > morsing wrote:
    > Hi,
    >
    > If it's just hanging it's likely to be a network problem.
    > Blame your favourite network team...

    Hmm, I disagree. There are several reasons it can be hanging with are totally within the control of the AIX server, including routing. This is exacerbated by servers with multiple nics on different networks. No indication from the original poster if this is a box behind a firewall, on a client with VIOS based networking, using EtherChannel, or any number of things that could cause it to hang.

    The question 'which port should be open' suggests the machine is either behind a firewall, or is running some firewall software, which also complicates the issue.

    Anyway, ssh is still a much better choice.
    #AIX-Forum