LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-08-2011, 01:20 PM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
problem with passwordless ssh


I have a server and worker node and the /home at server is shared with worker via NFS. I also want apply passwordless ssh for each user between these two. This is what I did and please note the error:
Code:
user1@server:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user1/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
The key fingerprint is:
................. user1@server
The key's randomart image is:
.....
.....
user1@server:~$ ls -l .ssh/
total 8
-rw------- 1 user1 users 1679 2011-01-08 22:43 id_rsa
-rw-r--r-- 1 user1 users  397 2011-01-08 22:43 id_rsa.pub
user1@server:~$ ssh-copy-id worker
Warning: Permanently added 'worker,192.168.1.2' (RSA) to the list of known hosts.
user1@worker's password:
bash: .ssh/authorized_keys: Permission denied
user1@server:~$
Any idea about that error?

Last edited by mahmoodn; 01-08-2011 at 01:22 PM.
 
Old 01-08-2011, 01:24 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Feels like ~/.ssh/authorized keys on worker is not writable by user1. Create .ssh or authorized_keys or fix the permissions on .ssh or authorized_keys.
 
Old 01-08-2011, 01:27 PM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
You are right. Although I shared the home folder between server and worker, I have not write permission on worker.
Code:
user1@server:~$ mkdir a
user1@server:~$
but
Code:
user1@worker:~$ mkdir b
mkdir: cannot create directory `b': Permission denied
user1@worker:~$
How can I fix that?

Last edited by mahmoodn; 01-08-2011 at 01:28 PM.
 
  


Reply



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
Passwordless SSH cccc Linux - Networking 9 12-27-2009 07:04 AM
passwordless ssh problem blckspder Linux - Server 6 03-05-2009 09:29 AM
Passwordless ssh isn't dcroxton Linux - Software 8 07-18-2008 12:16 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
Passwordless SSH problem? LQYY Linux - Software 5 06-09-2005 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:09 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