Visit The New, Modern Unix Linux Community

key ssh

Thread Tools Search this Thread
Operating Systems AIX key ssh
# 1  
key ssh


I want to connect from server1 to server2 (Aix 5.3) with ssh, without password prompt.
So i define a ssh-key

On server1:
ssh-keygen -b 1024 -f identity -P '' -t dsa
scp toto@server2:/tmp/

On server 2:
cat >> .ssh/authorized_keys
chmod 400 .ssh/authorized_keys

On server1:
ssh -i identity
and i have the message :
"Usage: Segmentation fault(coredump)"

I work with ssh 2
It 's the same problem with ssh/authorized_keys2 on server2

thank you
# 2  

this is justone thign i know....

as for as ssh or ssh2 is concerned, there is a /.shosts file in root directory.
This directory mush have the entries of the other server user account, can also be root. This file should be there in server2 also. Its soem form of handshaking for allowing root commmands to be executed.
# 3  
If you have your keys exchanged, you don't need to have a .shosts file. This should work. You can run ssh with a "-d" flag in debug mode (-dd gets you more debugging,
-ddd even more, etc.).

A segmentation fault means that your program is trying to point to memory that does not belong to it. 9 times out of 9, this is because your program has a pointer that was not initiallized, and thus points to 0, a memory location that is owned by the operating system. I don't know what version of ssh you have, but it appears to be buggy.

I ran into similar problems on a Solaris 9 box. What the problem ended up being there was that the ssh was compiled for 32 bits (it was a 32 bit CPU), but the ssl was compiled for 64 bits. My point being that it may not be your ssh, but rather your ssl that is broken.

Maybe "truss" would help you figure out where it is core dumping? Good luck.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #173
Difficulty: Easy
The key difference between Linux and many other popular modern operating systems is that the Linux kernel and other components are free and open-source software.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Issue with SSH key

Hello All , I am trying to set up the keys to login seamless on to two diff environment server(s). i used to have it couple of years back , but somehow never worked and didn`t concentte much , but when i want to setup again . facing a challange while copying the id_rsa.pubfile to... (4 Replies)
Discussion started by: radha254
4 Replies

2. Red Hat

Ssh-key issue

Hi all, I have generated pass phrase key from Linux and copied into windows system. Then now we cant login to Linux from windows without that pass phrase key, unfortunately i forgot the pass phrase key. I have tried below procedures to recover it. 1. Have regenerated the id_RSA key again... (3 Replies)
Discussion started by: mastansaheb
3 Replies

3. AIX

Help with ssh key exchange

Hi I have two aix lpars with version 7.1. i created a user named test in both the lpars. in one of the lpar i ran ssh-keygen -t rsa -b 2048 and got the publickey. i copied this public key to the authorized_keys of the other server. when i do ssh its asking for password? please assist (2 Replies)
Discussion started by: newtoaixos
2 Replies

4. Cybersecurity

get ssh key comment

Hey Guys, I have a server, and a technical user on it (only for reading logs). I set up openssh, and the user can login only with ssh key pair. Under this one technical user, there are a lots of public keys in the ~/.ssh/authorized_keys file. I would like to find out/log with which key the user... (3 Replies)
Discussion started by: lyynxxx
3 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. Shell Programming and Scripting

Using ssh to add register key on ssh server

Hi, I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
Discussion started by: leaftree
9 Replies

7. UNIX for Advanced & Expert Users

ssh key

Hi all, I have a sshkey which I use to connect from my unix box to a linux box without any issue...... however I downloaded this same key to my laptop and tried to connect to the same linux box but it failed..... As my laptop is running MS Vista I guessing I going have to convert it ...... (1 Reply)
Discussion started by: Zak
1 Replies

8. UNIX for Advanced & Expert Users

SSH - Public key

When should one have to generate a public key on a Server when the public key is already created and used by other clients? Thanks, Rahul. (6 Replies)
Discussion started by: rahulrathod
6 Replies

9. Cybersecurity

SSH key code versus server key code

Hi, When logging in using SSH access (to a remotely hosted account), I received a prompt to accept a server's key fingerprint. Wrote that string of code down for comparision. Already emailed my host for their listing of the string of code for the server's key fingerprint (for comparison,... (1 Reply)
Discussion started by: Texan
1 Replies

10. UNIX for Dummies Questions & Answers

SSH key authentication

Hi all, I have got a Solaris machine and I have several user account setup up with the .ssh and authorized_keys file in their home directories. I have check all the permission and ownership and they are all indentical and belongs to the user ID and group respectively. However one of the... (3 Replies)
Discussion started by: stancwong
3 Replies

Featured Tech Videos