ssh-keygen issue on AIX

Hi ,

I am trying to create public key on my AIX server on other than home directory.However the command does not ask for
Enter file in which to save the key :
It is directly taking me to Enter the passphrase.
I don't want to save the key in home dir as that is the home dir for other userID too.
Please help.
Here is the screenshot :

 
$ ssh-keygen -t dsa -b 1024
Generating 1024-bit dsa key pair
9 oOo.oOo.oOoo
Key generated.
1024-bit dsa, sk44907@ccbap-tst1502.XXX.xxx.net, Thu Feb 16 2012 16:20:56 -0600
Passphrase :
Again :
Error occurred, private key not written: No such file or directory / Failed to open `/home/sk44907/.ssh2/id_dsa_1024_a': No such file or directory / Failed to write private key.
Error occurred, public key not written: Failed to open `/home/sk44907/.ssh2/id_dsa_1024_a.pub': No such file or directory / Failed to write public key to file.

Try this:

ssh-keygen -t dsa -b 1024 -f /name/of/file
$ ssh-keygen -t dsa -b 1024 -f /tmp/.ssh/identity
illegal option -- f
Usage: ssh-keygen [options] [key1 key2 ...]

No luck :frowning:

I have tectia ssh installed and it does not allow -f arguement. Please help, it is urgent.

Did you check the man page of the ssh implementation you are using? -f option works for OpenSSH client. I am not really sure about Techtia.

Run "ssh" by itself and the arguments may be displayed. Maybe you can find the argument in there.

hostname:/:$ ssh
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]
hostname:/:$

saurau is asking for ssh-keygen command though. The options can be checked either from man page or running the command without any argument.