ssh with shared mount point


 
Thread Tools Search this Thread
Operating Systems Solaris ssh with shared mount point
# 1  
Old 11-28-2007
ssh with shared mount point

I have 3 nodes and I want to set up ssh between them. Normnally I am fine with that but I am a bit stumped because for the Oracle user we have a shared mountpoint (/home/oracle) across all 3 nodes

I create my rsa and dsa files in ~/.shh as node1_id_rsa / node1_id_dsa (for each of the 3 modes) and then I cat each of the .pub files (both rsa and dsa) into the authorised_keys file.

ssh still requires a password. The concept of the shared home area is confusing me a bit

Can anybody else please
# 2  
Old 11-28-2007
Shouldn't you be appending the certificate to $HOME/.ssh/authorized_keys?

Is the home directory shared between all 3 nodes, hence there is only one .ssh directory that is also shared?

If so then this user can only have one default certificate identifying the user.
# 3  
Old 11-29-2007
Porter, thanks for the response

I am appending the files to $HOME/.ssh/authorized_keys.

There is only one .ssh directory. However if I run the ssh-keygen routine on node1 it creates .pub files with node1 in the line. Therefore if I try and connect from/to node 2 then it requires a password.

Bear with me, I know I am not explaining myself very well
# 4  
Old 11-30-2007
I have solved my problem
I needed to ssh-keygen -t rsa and ssh-keygen -t dsa to separate files for each node

Then cat each node_id_rsa file into a clean file id_rsa and repeat for the node_id_dsa files into id_dsa.

Then copy the relevant node_id_rsa.pub files and node_id_dsa.pub files into authorised_keys.

Finally chmod 600 on the id_rsa and id_dsa files
# 5  
Old 11-30-2007
I have a number of machines where I put exactly the same "identity" and "identity.pub" in my $HOME/.ssh directories because I am the same user.

This allows me to ssh and scp directly to any machine without having to use a password.

And you would only need one entry in the authorized_keys, eg the same as identity.pub.

known_hosts would accumulate the different machines you talk to of course.

I use this to distribute my keys....

Code:
#!/bin/sh -x

ME=`whoami`

for d in $@
do
        ssh <identity.pub $ME@$d cat \>\>.ssh/authorized_keys
        if test "$?" = "0"
        then
                if ssh </dev/null $ME@$d chmod 600 .ssh/authorized_keys
                then
                        ssh <identity $ME@$d dd of=.ssh/identity
                        ssh <identity.pub $ME@$d dd of=.ssh/identity.pub
                        ssh </dev/null $ME@$d chmod 600 .ssh/identity .ssh/identity.pub
                        ssh $ME@$d ls -l .ssh
                fi
        fi
done

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies

2. AIX

How to change the mount point of LV?

I have situation where my disk upon reboot, has its mount point as # LOGICAL VOLUME: disk4vol VOLUME GROUP: disk4vg LV IDENTIFIER: 00f609aa00004c0000000152414b786c.1 PERMISSION: read/write VG STATE: active/complete LV STATE: closed/syncd TYPE: jfs2 WRITE VERIFY: off MAX LPs: 512 PP SIZE: 512... (1 Reply)
Discussion started by: mrmurdock
1 Replies

3. Red Hat

NFS mount point

Hi, Can you tell me something about NFS mount point ? Regards, Maddy (3 Replies)
Discussion started by: Maddy123
3 Replies

4. AIX

Change Mount point

Deart All, can any one help to do this, i need to change mount point in AIX 6 /opt/OM should be /usr/lpp/OM, how do i do.... Please help me Urgent issue (2 Replies)
Discussion started by: gulamibrahim
2 Replies

5. Solaris

Mount Point Sorting?

Dear Gurus, Could it be possible to have the output of df -k sorted? The df -k output messed up after recent power trip. Also, is there any folders that I should look into to reduce the root size (other than /var/adm and /var/crash) after server crash? Many thanks in advance. ... (2 Replies)
Discussion started by: honmin
2 Replies

6. UNIX for Advanced & Expert Users

mount point lists

is there any command to know the list of mount points in a server.i need only the mount point lists.i tried using df but it was not helpful.i am using Solaris (1 Reply)
Discussion started by: dr46014
1 Replies

7. UNIX for Advanced & Expert Users

Mount point options

Hello all, I'm sharing 1 volume from a Sun Storage array (6130), out to 2 servers. Created a slice on one server and mounted a filesystem. On the other server the disk already sees the created slice from the other server (shared throught the storage array, so mounted this filesystem as well. ... (1 Reply)
Discussion started by: Sunguy222
1 Replies

8. UNIX for Dummies Questions & Answers

concept of mount point

Hi All I Know it is a really basic and stupid question perhaps...But I am going bonkers.. I have following valid paths in my unix system: 1. /opt/cdedev/informatica/InfSrv/app/bin 2. /vikas/cdedev/app Both refer to the same physical location. So if I created one file 'test' in first... (3 Replies)
Discussion started by: Vikas Sood
3 Replies

9. UNIX for Dummies Questions & Answers

auto mount point

hi can i know what is the command to create auto mount point in my unix server? is there any directory which i have to go? (1 Reply)
Discussion started by: legato
1 Replies

10. UNIX for Dummies Questions & Answers

mount point

hi people, I'm trying to create a mount point, but am having no sucess at all, with the following: mount -F ufs /dev/dsk/diskname /newdirectory but i keep getting - mount-point /newdirectory doesn't exist. What am i doing wrong/missing? Thanks Rc (1 Reply)
Discussion started by: colesy
1 Replies
Login or Register to Ask a Question