Is the server are you trying to connect to a Tectia server or OpenSSH (or other) ?
The answers on this question show some examples on how to check the version of the server: http://answers.tectia.com/questions/29/i-am-connected-using-tectia-client-on-windows-to-a-remote-server-how-can-i-tell
If the server is a Tectia Server 6.0 or newer you could try the following:
Note that for this to work, public key authentication needs to be allowed in the server. It's enabled by default on Tectia server but of course it may have been disabled by the administrator
1. Generate a public key pair on the client using keygen, such as:
It will prompt you for a passphrase.
It's possible to enter an empty passphrase by just pressing enter so that you won't get prompted at connection time. However, bear in mind that anyone with access to this key (private part) will be able to connect to the server without further authentication, so be sure to properly secure the private key if you use an empty passphrase.
This will create two files on the client, the private part (mykey) and the public (mykey.pub) part of the key pair. Make sure that the permissions on your private key are secure (only you should have read/write access to it). The public part is the one you can share to the server.
2. Open a remote terminal connection to the Tectia server and create the following directories on your home directory:
Make sure the permissions on those are so that only you have read/write/execute access:
3. Finally copy the public key (mykey.pub) you just generated in step 1 to the directory you just created on the server in step 2. Such as:
You'll get prompted for password since the key is not setup yet. But after coping the key, further connections from clients that have access to the private key should use public-key authentication without passphrase.
And you're done. You should now be able to connect using public key authentication:
This should prompt for the passphrase of your key (or no prompt if you chose an empty passphrase) and authenticate you to the server.
answered Dec 08 '10 at 10:43