how to configure ssh2 for not asking password when logging from remote

Hi gurus,
I am trying to configure ssh2 for not asking passwords when logging in from a remote machine, but it is failing. I ran the command based on the oracle documentation. down below are the steps, please do let me know how to get this solved.
the steps followed
$ /usr/bin/ssh-keygen2 -t dsa
Generating 2048-bit dsa key pair
16 .oOOo.oOo.oO
Key generated.
2048-bit dsa, uvarshne@sunsm1a, Tue Oct 28 2008 18:02:01 -0500
Passphrase :
Again :
Key is stored with NULL passphrase.
(You can ignore the following warning if you are generating hostkeys.)
This is not recommended.
Don't do this unless you know what you're doing.
If file system protections fail (someone can access the keyfile),
or if the super-user is malicious, your key can be used without
the deciphering effort.
Private key saved to /home/dba/uvarshne/.ssh2/id_dsa_2048_b
Public key saved to /home/dba/uvarshne/.ssh2/id_dsa_2048_b.pub
$ /usr/bin/ssh-keygen2 -t rsa
Generating 2048-bit rsa key pair
4 .oOo.oOo.oOo
Key generated.
2048-bit rsa, uvarshne@sunsm1a, Tue Oct 28 2008 18:10:01 -0500
Passphrase :
Again :
Key is stored with NULL passphrase.
(You can ignore the following warning if you are generating hostkeys.)
This is not recommended.
Don't do this unless you know what you're doing.
If file system protections fail (someone can access the keyfile),
or if the super-user is malicious, your key can be used without
the deciphering effort.
Private key saved to /home/dba/uvarshne/.ssh2/id_rsa_2048_b
Public key saved to /home/dba/uvarshne/.ssh2/id_rsa_2048_b.pub

$ touch ~/.ssh2/authorization

$ ssh2 cat id_rsa_2048_*.pub >> authorization^C
$ stty erase
$ ssh2 ^C
$ uname -a
SunOS sunsm1a 5.8 Generic_117350-39 sun4u sparc SUNW,Sun-Fire-280R
$ ssh2 sunsm1a cat ^C
$ pwd
/home/dba/uvarshne/.ssh2

$ ssh2 sunsm1a /home/dba/uvarshne/.ssh2/id_rsa_2048_*.pub >> authorization
Host key not found from database.
Key fingerprint:
xihel-hobyk-mimiv-tifal-dicyb-vubul-hezek-begap-nafyg-lamym-bexux
You can get a public key's fingerprint by running
% ssh-keygen -F publickey.pub
on the keyfile.
warning: tcgetattr failed in ssh_rl_set_tty_modes_for_fd: fd 1: Inappropriate ioctl for device

^C
Received signal 2. (no core)

$ cat id_rsa_2048_b.pub >authorization
$ cat id_dsa_2048_b.pub >>authorization

$ ssh sunsm1a date
Host key not found from database.
Key fingerprint:
xihel-hobyk-mimiv-tifal-dicyb-vubul-hezek-begap-nafyg-lamym-bexux
You can get a public key's fingerprint by running
% ssh-keygen -F publickey.pub
on the keyfile.
Are you sure you want to continue connecting (yes/no)? yes
Host key saved to /home/dba/uvarshne/.ssh2/hostkeys/key_22_sunsm1a.pub
host key for sunsm1a, accepted by uvarshne Tue Oct 28 2008 18:14:22 -0500

uvarshne's password:

I am not sure where i am going wrong
Can you please help me out on this.

thanks in advance
Arun

Warning: It is not nice to hijack the threads of other people with your problems so you should be polite and open a thread on your own next time, which I did now for you this time. Also a hint to make your thread more readable is to use [ code ] and [ /code ] tags to display your logs/code etc.

I'm not sure about ssh2 but I would assume it is similar to ssh...

check out this post and see if it helps any...
http://www.unix.com/shell-programming-scripting/86663-hiding-password-ftp-script.html\#post302250878