LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-18-2007, 11:25 PM   #1
techteacher
LQ Newbie
 
Registered: May 2007
Posts: 5

Rep: Reputation: 0
Question SSH not becoming password 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

also slavenode have another lan card eth1 that connect to internet
Thanks
 
Old 06-19-2007, 05:59 AM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
Post the sshd_config file for the master server. It probably isn't configured correctly for what you want to do. I can't remember where it is exactly, it is probably under /etc/ssh(d)/sshd_config or something along those lines.

HTH,

Centinul
 
Old 06-19-2007, 04:15 PM   #3
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
cat your id.pub to the ~/.ssh/authorized_keys2 file. If you don't have one, create it. Then you might need to edit your /etc/ssh/sshd.conf file to allow pubkey logins. Check it out.
 
Old 06-26-2007, 04:59 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Well? What worked?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh with password adnanm Linux - Newbie 6 03-25-2011 11:08 AM
need help with no password ssh and ssh-agent hedpe Linux - Networking 3 02-08-2007 08:49 PM
SSH without password Ephracis Linux - Security 4 02-25-2005 02:30 PM
SSH without password hywaydave Linux - Security 3 02-02-2005 03:40 AM
password less SSH maaand Linux - Networking 0 04-23-2002 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration