-   Linux - Networking (
-   -   How to ssh-keygen? (

Baran 04-22-2005 03:47 AM

How to ssh-keygen?

I am writing a small script and I need to connect to a remote server using ssh with one line. I learned that I should use ssh-keygen, I read few tutorials about ssh. But none of them were clear for a beginner :(

I want to connect to the remote server without any password prompt. I didn't understand where to create the keys, in the local machine or the remote and what should I do with the key?

I would be very glad if someone helps?

Thanks in advance


david_ross 04-22-2005 05:58 AM

There is an explanation here:

If you have any questions just post them here.

Baran 04-22-2005 09:45 AM

I tried all those that are explained in that document, I am still asked for password. According to the document I have this situation:

debug1: Authentications that can continue: password,keyboard-interactive
Then check sshd_config on the server and remove the line "PubkeyAuthentication no" if it exists then restart sshd.

However where can I find this sshd_config file on the server? I could not find it under my home directory in the server.

david_ross 04-22-2005 09:50 AM

It will usually be /etc/ssh/sshd_config

Baran 04-24-2005 04:09 PM

I checked the file and it is under


however I cannot edit that because I dont have enough permissions. Isn't there a way to solve this without asking the network administrator to do that for me?

david_ross 04-26-2005 02:40 PM

If the server admin has stopped public key authentication you will need to ask them to allow it.

All times are GMT -5. The time now is 07:48 AM.