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.
- 06-13-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 3
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
- 06-13-2007 #2Just 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
- 06-14-2007 #3
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
- 06-15-2007 #4
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.
HTHLinux user #126863 - see http://linuxcounter.net/


Reply With Quote
