Solaris 11.2 / OSX 10.9.5 SSH issue


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Solaris 11.2 / OSX 10.9.5 SSH issue
# 1  
Old 10-12-2014
Solaris 11.2 / OSX 10.9.5 SSH issue

I could use a fresh pair of eyes to look at this, because it has me baffled. I am attempting to setup pasword-less ssh keys (rsa) between 2 systems. As the user (admin on both systems), I have generated the keys on both the Solaris 11 and the OSX systems and using the cat command, I have copied the id_rsa.pub keys across without a problem.
Code:
cat ~/.ssh/id_rsa.pub | ssh userl@x.x.x.x "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

$home/.ssh directories on either system have id_rsa, id_rsa.pub, authorized_keys and known_hosts files. The authorized keys file on either system contain the coresponding keys but only the known_hosts file on the OSX machine has a key in it. The Solaris known_hosts is blank. As such, I can ssh from Solaris to OSX without a password but when I ssh from the Mac to Solaris I am prompted for a password ?
I have verified that both machines are using SSH Protocol Version 2. I have not used sudo at any point of generating or copying the keys and I have checked each systems firewall settings to allow for ssh / remote login.
Any suggestions would be greatly appreciated.
# 2  
Old 10-13-2014
Have you verified that the ~/.ssh directory is 700 and authorized_keys is 600 ?
Also, the cat will not happen if ~/.ssh already exists since the mkdir -p will have a non-zero RC

Last edited by Scrutinizer; 10-13-2014 at 01:34 AM..
This User Gave Thanks to Scrutinizer For This Post:
# 3  
Old 10-13-2014
Some sshd versions want ~/.ssh/authorized_keys2
This User Gave Thanks to MadeInGermany For This Post:
# 4  
Old 10-13-2014
Scrutinizer: Thank you. This was the problem on the Solaris machine. I had been looking too hard at the Mac as the cause. Post the changes made to permissions as you suggest, ssh is playing nicely now, in both directions. Thank you again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 8 ssh issue - $SSH_ORIGINAL_COMMAND undefined variables

I face a weird question I don't know how to deal with. I tried to limit the permission of root user to remote login using ssh. So I did the following for a client server, 1. edit /usr/local/etc/sshd_config and modify as below PermitRootLogin forced-commands-only 2. using pubkey... (7 Replies)
Discussion started by: bestard
7 Replies

2. UNIX for Dummies Questions & Answers

Terminal emulation OSX Vs. Solaris 11

I am using Terminal on an OSX system to access and edit crontab files on a 'headless' Solaris 11 server. Crontab -e on OSX invokes vi as the editor, which is fine, but I am getting unexpected characters on keystrokes and have to abort the edit. If this is an emulation issue, would someone please... (1 Reply)
Discussion started by: SmokeyJoe
1 Replies

3. Cybersecurity

SSH password-less login issue between linux and solaris

Hello Gurus, I am trying to set up bidirectional password-less login between a linux and a Solaris. The way I am doing is very simple, which is creating pub/priv key pairs on each host and add the pub key to each other's authorized_keys file: ssh-keygen -t rsa (I tried dsa, and it didn't work... (4 Replies)
Discussion started by: error_lee
4 Replies

4. Solaris

solaris 8 reset root password from OSX

Hello, I have two old Solaris machines $ uname -a SunOS unknown 5.8 Generic_117350-39 sun4u sparc SUNW,UltraAX-e2 unfortunately, it has been so long ago that i have used these that the root password has left my head... i can log into one of the machine as a normal user, but am unable to... (4 Replies)
Discussion started by: Norman Khine
4 Replies

5. Solaris

Solaris 8 ssh public key authentication issue - Server refused our key

Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks. ... (1 Reply)
Discussion started by: aixlover
1 Replies

6. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

7. Solaris

trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6)

I am currently setting up rdiff-backup to use ssh to connect and remotely backup and retrieve data. I am doing so by creating rsa keys for each server and copying the relevant key to the /.ssh folder on the relevant server. All seems to work well when severs running solaris 8 with ssh 3.6.1 are... (6 Replies)
Discussion started by: falklandtim
6 Replies

8. UNIX for Advanced & Expert Users

Add users on OSX server with SSH

Hi Is it possible to add users on a Mac OSX server from a unix system with ssh? If it is what file to alter? brg Nicke (3 Replies)
Discussion started by: nicke30
3 Replies

9. Cybersecurity

ssh and Mac OSX

Please help if you are familiar with Mac OSX. I downloaded OpenSSH for a newer version of SSH than what comes with OS 10.1. What a mistake! Now every time I try to make a connection to my remote server I get an message that ssh was built against version such and such and I have version such and... (2 Replies)
Discussion started by: glfisfn
2 Replies
Login or Register to Ask a Question