LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-22-2005, 04:47 AM   #1
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Rep: Reputation: 15
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
 
Old 04-22-2005, 06:58 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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

If you have any questions just post them here.
 
Old 04-22-2005, 10:45 AM   #3
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Original Poster
Rep: Reputation: 15
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.
 
Old 04-22-2005, 10:50 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
It will usually be /etc/ssh/sshd_config
 
Old 04-24-2005, 05:09 PM   #5
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Original Poster
Rep: Reputation: 15
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?
 
Old 04-26-2005, 03:40 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
problem with SSH-KEYGEN with some server ohgin Linux - Newbie 1 08-17-2005 11:35 AM
how can i create a ssh-keygen for user?? yenonn Linux - General 1 06-14-2005 11:37 PM
ssh-keygen problem mijohnst Linux - Networking 5 07-20-2004 02:00 PM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 06:51 PM


All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration