Find the answer to your Linux question:
Results 1 to 4 of 4
Hi! i want to ssh between master and slave node without pass word . i made following changes on both master and slave node /etc/hosts file have ON Master node ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    3

    Question ssh not running pasword free


    Hi!
    i want to ssh between master and slave node without pass word . i made following changes

    on both master and slave node /etc/hosts file have

    ON Master node /etc/hosts
    192.168.0.2 masternode master
    192.168.0.1 slavenode slave
    127.0.0.1 localdomain

    .shosts file
    masternode master
    slavenode slave

    /etc/ssh/shosts.equiv
    masternode
    slavenode

    after this i do these steps

    ssh-keygen -t dsa -f .ssh/idenity
    cd .ssh
    scp identity.pub root@slavenode:~/.ssh/idenity.pub
    on the slave node i do
    cat idenity.pub >> authorized_keys
    chmod go-rwx authorized_keys
    rm idemtity.pub

    On master node when i run
    ssh slave ls
    IT STILL ASK FOR PASSWORD
    Pls, help me to solve this problem

    ON slave node
    /etc/hosts
    192.168.0.1 slavenode slave
    192.168.0.2 masternode master
    127.0.0.1 localdomain


    Thanks

  2. #2
    Just Joined!
    Join Date
    May 2007
    Posts
    11

    Asks for password one last time

    I don't know if this will help, but according to this how-to (SSH login without password) it should have asked you for your password one last time.

    Martin

  3. #3
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    Try ssh -vv slave. This will create trace outputs which should help to isolate the problem.
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

  4. #4
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,864
    Right, if you're doing this ssh on MASTER and connecting to SLAVE then:

    Generate the keys on SLAVE

    copy the public key to MASTER, put it in the .ssh file for the user that's connecting.

    connect from MASTER to SLAVE with 'ssh SLAVE', you may need 'ssh -1 SLAVE' depending on what type of key you're using. If you're going to automate this, then doing it manually will allow you to permanently add the host's ID in known_hosts by answering 'yes' when prompted.

    HTH
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •