Passwordless SSH from Unix to Solaris


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Passwordless SSH from Unix to Solaris
# 1  
Old 09-11-2008
Passwordless SSH from Unix to Solaris

I am trying to setup passwordless ssh via a script and I have taken my ssh pub key from server A and placed itin the authorized_keys file on server B, but I am still prompted for a password when trying to ssh from server A to server B. Server A is using 'OpenSSH_3.9p1, OpenSSL 0.9.7a' and Server B is using 'ssh: F-Secure SSH 3.1.0 (build 8) on sparc-sun-solaris2.8'.
Does anyone know how I can get these two to talk?
# 2  
Old 09-11-2008
You need to convert your OpenSSh key into a key F-Secure understands.
the -e option of ssh-keygen can read an OpenSSH pub key file and output the contents into a format that F-Secure understands. You'll have to redirect the output to whatever file name F-Secure expects (file named identity if I remember correctly?)
# 3  
Old 09-11-2008
So would the command on server A be something like this: ssh-keygen -e -f id_rsa.pub
Then I would sftp that file over as identity.pub? Then cat the key into authorized_keys?
# 4  
Old 09-11-2008
In the OpenSSH server (assuming you want to call the file fsec.pub):
Code:
ssh-keygen -e -f id_rsa.pub >> fsec.pub

In the F-Secure server:
You move fsec.pub to $HOME/.ssh2/ in the F-Secure server
Then you add an entry in the authorization file:
Code:
key fsec.pub

# 5  
Old 09-11-2008
Thanks....that worked like a charm!!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Passwordless ssh for different user

Hello Folks, I lost touch in ssh key gen topics. I am in need of ssh to a server without password, kindly help me in configuring. I have two servers, server1 with user name apha & server1 with user name beta. I need to ssh to the server2 from server1 with respective users, Manually i... (3 Replies)
Discussion started by: Thala
3 Replies

2. Shell Programming and Scripting

Ssh passwordless authentication

Hey team I have to enable password less authentication betweeen A to B server and A to C server and A to D server. For this I generated a ssh key on server A using ssh-keygen command and copied the key using ssh-copy-id command to B, C and D server. Everything is working fine as of now but... (5 Replies)
Discussion started by: Sandeep_sandy
5 Replies

3. Solaris

Passwordless ssh for root

Hi Experts, I am trying to setup passwordless ssh for root between two of my solaris servers(say A & B). I have exchanged the public keys between both servers. Password less ssh working fine while I try to connect from Server A to Server B. However it is still asking password... (6 Replies)
Discussion started by: sai_2507
6 Replies

4. UNIX for Advanced & Expert Users

Passwordless ssh

Hi I have created a user on a linux server and created a passwordless ssh key. I've echoed the key into the authorized_keys file for the user. I've added a series of forced commands to the key. From my laptop - logged in as myself - I can ssh into the server as that user and the commands... (3 Replies)
Discussion started by: steadyonabix
3 Replies

5. Shell Programming and Scripting

passwordless ssh

My main concern is, i have to login into 300 linux server and all are having same userid and password. I dont want to create any key for each server to login . Is there a way to run the shell script ? (3 Replies)
Discussion started by: Mani2512
3 Replies

6. UNIX for Dummies Questions & Answers

passwordless ssh

hi, i have tried with passwordless shh in google.. i followed the below steps ... user:~> ssh-keygen -t rsa Enter file in which to save the key (/home/cantin/.ssh/id_rsa):key.txt Enter passphrase (empty for no passphrase): Enter same passphrase again: till this step i... (0 Replies)
Discussion started by: arunmanas
0 Replies

7. Shell Programming and Scripting

ssh passwordless

Hi, I want to login to a remote server and sftp files without password prompting. So, I created private-public key pair as follows: user1@server1.com .ssh]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/user1/.ssh/id_rsa): Enter... (7 Replies)
Discussion started by: dips_ag
7 Replies

8. HP-UX

Help on passwordless ssh...

Hi, Can someone help me on ssh-keygen usage...? I used ssh-keygen after which "id.pub" file was generated in system1's > .ssh directory... I copied the same into the remote system system2 > .ssh directory as "authorized_keys" file. Now i tried ssh connection from system 1 to system... (7 Replies)
Discussion started by: EmbedUX
7 Replies

9. AIX

Passwordless authentication via SSH

I am trying to implement passwordless authentication via ssh2. I have used the well documented technique of generating a key pair with a blank passphrase on my client machine, and installing the public key on the destination server (AIX 5.3) in the user's .ssh2 directory. I have used this technique... (1 Reply)
Discussion started by: RegX
1 Replies
Login or Register to Ask a Question