To enable public-key authentication with your key pair:
Check that your keys are stored in the default location:
the $HOME/.ssh2
directory on Unix,
(the "%APPDATA%\SSH\UserKeys
" directory on Windows).
Connect to Server
using your password.
Use the SCP tool to upload your public key to the server,
to your default authorized_keys
directory,
$HOME/.ssh2/authorized_keys
on Unix servers,
("%APPDATA%\.ssh2\authorized_keys
" on Windows servers):
$ scpg3 id_dsa_2048_a.pub ServerUser@5xServer:.ssh2/authorized_keys/
The server will then use the uploaded public key to authenticate you when you log in after this.