SSH Keys between RHEL 5 and Solaris 10

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat SSH Keys between RHEL 5 and Solaris 10
# 1  
Old 11-10-2011
SSH Keys between RHEL 5 and Solaris 10

Hi all

Has anyone ever successfully set up ssh key pairs for "passwordless" logins between rhel and Solaris?
I've set it up many times before between Solaris systems but i'm having difficulty doing between the two OS's in question.
What I have done so far is append the contents of the rhel user's id_rsa.pub file to the authorized_keys file of the same user on the Solaris machine.

Any help will be appreciated.
Thanks
# 2  
Old 11-10-2011
What exactly is the problem you are having? Asking the forum whether anyone has ever successfully set up ssh key pairs for "passwordless" logins between rhel and Solaris does not provide many clues to your problem.
# 3  
Old 11-10-2011
What I meant by " having difficulty" is that I can't get it to work. I'm being prompted for a password instead of being able to log in without having to put in a password.
Apologies for the possible misunderstanding.
# 4  
Old 11-10-2011
What's the permissions on the .ssh directory, the directory it's in and of the authorized_keys file, on both servers?

Did you (i.e.) "scp" the id_rsa.pub file, or cut and paste it?
# 5  
Old 11-10-2011
I tried a cut and paste as well as the following command:

Code:
cat .ssh/id_rsa.pub | ssh user@server 'cat >> .ssh/authorized_keys'

The permissions on the files are as follows:
Code:
drwxr-xr-x   2 user    other        512 Nov  9 14:24 .ssh

Code:
-rw-r--r--   1 user    other        396 Nov  9 14:23 authorized_keys

# 6  
Old 11-10-2011
There's really no reason to grant more permissions than is absolutely necessary to allow SSH to work. For this reason, I always grant 700 on the .ssh directory, and 600 on the authorized_keys (it could be less, but then editing the file get's on my nerves afterwards!).

In RHEL, you should also pay attention to the parent directory of the .ssh directory. Remove write for group, if it's set.

I asked about "cut and paste", since it might have happened that the key was pasted incorrectly over two lines, instead of one, and that would obviously break it.
# 7  
Old 11-11-2011
I tried the same thing from another Redhat machine.
Code:
ssh-keygen -t rsa

Code:
cat .ssh/id_rsa.pub | ssh user@solaris_server 'cat >> .ssh/authorized_keys'

And still no joy Smilie

I'm thinking that it can't be done between the two different OS's.
I'm open to suggestions.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies

2. Solaris

help with SSH keys

Hello, I could use some help with my ssh keys and agent. This is the issue. I have 2 different UNIX systems at work. One is the normal Solaris servers with my uid being the same throughout all the servers. I now have a different system for my desktop. A contractor came in and installed some SUN... (0 Replies)
Discussion started by: bitlord
0 Replies

3. Red Hat

cannot ssh (use NFS) on RHEL box, but can mount external & ssh out of RHEL box

Ok, Im trying to get NFS working on my RHEL 5 box, apparently i can use the box as a client, but not as a server. If it helps i cant ssh into the box (server), but as a client ssh works fine. Ive configured server: /etc/hosts.allow: all : all all :all@all setup my /etc/exports file... (4 Replies)
Discussion started by: drs.grid
4 Replies

4. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

5. UNIX for Dummies Questions & Answers

ssh keys monitoring

Hi, I have ssh keys (id_rsa and id_rsa.pub). However, every once in a while, someone deletes these keys. here's what i want to do : 1. on my server, it will ssh user@password into the target machine(where ssh keys are located). 2. check the date/filesize of id_rsa, id_rsa.pub). 3.... (0 Replies)
Discussion started by: tungaw2004
0 Replies

6. UNIX for Dummies Questions & Answers

SSH keys

Hi everyone, i wanted to generate ssh keys so that i can include the public key in the remote sever, so that for subsequent logins, i can do away with the keying in of the password. I consulted the man ssh-keygen man pages. "..Normally each user wishing to use SSH with RSA or DSA... (1 Reply)
Discussion started by: new2ss
1 Replies

7. UNIX for Advanced & Expert Users

SSH Keys Help

Hello, I'm wondering if anyone has a step-by-step instruction set for setting up ssh keys? I've gone through many of the manuals online (most seem to be from the same source) and it's a little bit unclear when the documentation is talking about the server versus the client machine. I'm missing... (1 Reply)
Discussion started by: sysera
1 Replies
Login or Register to Ask a Question