AIX

AIX

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

 View Only
  • 1.  RSH & SSH

    Posted Sun April 10, 2011 04:38 AM

    Originally posted by: OmarMusallam


    RSH :

    i am trying to execute script on another server by running the command below :

    RSH HOST2 <script>
    but it requests password, how can i run this without asking for password.

    SSH :

    i was recommended to use SSH and i knew that i have to isntall it
    can you please provide me with steps,resource & preprerequisite to install SSH
    noting that the OS is AIX 5.3

    thank you


  • 2.  Re: RSH & SSH

    Posted Sun April 10, 2011 10:31 AM

    Originally posted by: ColombianJoker


    With SSH it's easy:

    in your client computer:

    ssh-keygen -t dsa
    ENTER for all prompts

    ssh username@servercomputer 'mkdir .ssh 2>/dev/null ; cat >> .ssh/authorized_keys' < ~/.ssh/id_dsa.pub

    Voila!


  • 3.  Re: RSH & SSH

    Posted Mon April 11, 2011 01:54 AM

    Originally posted by: OmarMusallam


    thanks for reply

    i tried but as shown below
    1. ssh-keygen -t dsa
    ksh: ssh-keygen: not found.


  • 4.  Re: RSH & SSH

    Posted Mon April 11, 2011 07:55 PM

    Originally posted by: ColombianJoker


    Have you installed SSH? SSH is not preinstalled in current versions of AIX.
    Try:
    *lslpp -L '\*ssh\*'*


  • 5.  Re: RSH & SSH

    Posted Mon April 11, 2011 07:55 PM

    Originally posted by: ColombianJoker


    It's hard to use this forum. Try
    lslpp -L '*ssh*'