LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to ssh-keygen? (http://www.linuxquestions.org/questions/linux-networking-3/how-to-ssh-keygen-315974/)

Baran 04-22-2005 04:47 AM

How to ssh-keygen?
 
Hello,

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

-Baran

david_ross 04-22-2005 06:58 AM

There is an explanation here:
http://www.linuxquestions.org/questi...ticle&artid=79

If you have any questions just post them here.

Baran 04-22-2005 10: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 10:50 AM

It will usually be /etc/ssh/sshd_config

Baran 04-24-2005 05:09 PM

I checked the file and it is under

/etc/ssh/


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 03: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 08:09 AM.