Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Oct 25, 2010 11:38 am 
Offline
Junior Member

Joined: Mon Sep 06, 2010 2:04 pm
Posts: 42
Hello all:

Doing this in two Ubuntu 10.4 LTS nodes.

Loosing my mind here. Not sure what is happening, but here is the issue:

I am trying to simply set up the standard SSH login from one node to another. (generating keys in one node, copy them over to 2nd node so they can be used by node #1 to login without a password). This is for an aegir set up, which all it means is I must generate this keys as a user ("aegir" user must be used) at both machines.

1) On Node #1 I create the dsa keys as an "aegir" user . No problem.
2) I then copy them over to node #2 in its /tmp folder. No problem.
3) On node #2 I generate the .ssh folder by creating the dsa keys as an "aegir", just like in node #1. This is to ensure .ssh is identical, though I will not be using the keys made. This is JUST to generate the .ssh folder. That is all. No problem.

Now, this is where it gets really bizarre:

4) There is no "authorized_keys" in the node #2 "aegir' user .ssh folder, so i switch over to "aegir" (su aegir) and do a simple touch

Code:
touch authorized_keys


But when I do this and then check via ls -l, authorized-keys shows up like this:

Code:
-rw------- 1 aegir aegir   0 Oct 25 08:05 authorized_keys


Ok, so then I say "let's chmod this file to its correct settings"

I go into .ssh and execute the chmod:

Code:
chmod 600 authorized_keys


I check again with ls -l

Code:
-rw------- 1 aegir aegir   0 Oct 25 08:05 authorized_keys


No change. I do this as root or as "aegir" user (with and without sudo), no change:

Code:
-rw------- 1 aegir aegir   0 Oct 25 08:05 authorized_keys


Furthermore, I also cannot chmod the .ssh directory itself.

8 hours trying and no luck.

What on earth is going on? Anybody? I beg for ANy help, hint, lead to a solution. Driving me nuts.

Thanks


Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 12:36 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
-rw------- == 600


Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 12:44 pm 
Offline
Junior Member

Joined: Mon Sep 06, 2010 2:04 pm
Posts: 42
Yes, that is what I am trying to do. The problem is...I can't.

Thanks all the same.


Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 1:00 pm 
Offline
Junior Member

Joined: Wed Oct 06, 2010 2:41 pm
Posts: 20
kannary100 wrote:
Yes, that is what I am trying to do. The problem is...I can't.


Could you clarify what you're trying to do?

Everything you've done seems to be working exactly as expected. As Stever pointed out, "-rw------- == 600". The permissions in your chmod match the permissions that 'ls -l' is showing.


Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 2:52 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Code:
jsmith@undertow:~/test$ touch file
jsmith@undertow:~/test$ ls -l file
-rw-r--r-- 1 jsmith jsmith 0 2010-10-25 14:51 file
jsmith@undertow:~/test$ chmod 600 file
jsmith@undertow:~/test$ ls -l file
-rw------- 1 jsmith jsmith 0 2010-10-25 14:51 file
jsmith@undertow:~/test$ stat file
...
Access: (0600/-rw-------)  Uid: ( 1000/  jsmith)   Gid: ( 1000/  jsmith)
...

I'm not sure what the problem is. You are setting the file to 600. Were you expecting something different?


Top
   
 Post subject:
PostPosted: Tue Oct 26, 2010 12:05 am 
Offline
Junior Member

Joined: Sat Jul 11, 2009 7:19 am
Posts: 30
Location: Martinique
The sad thing is that people like that now have multiple servers with gigabit links to the internet.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: sjnorton and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group