Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th May 2005, 03:20 PM
scorbel Offline
Registered User
 
Join Date: May 2004
Age: 37
Posts: 70
How can I setup ssh public key authentication.

I have installed FC3 and I want to setup sh public key authentication. so that i am not obliged to give my password each time I connect to a remote machine using SSH protocol.

Thanks

Regards
JO
Reply With Quote
  #2  
Old 11th May 2005, 03:27 PM
blammo's Avatar
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
Mmm.... not sure what you mean. Are you saying that anyone that connects to your SSH daemon using a valid user name will automatically be able to log on without a password?
Reply With Quote
  #3  
Old 11th May 2005, 03:34 PM
scorbel Offline
Registered User
 
Join Date: May 2004
Age: 37
Posts: 70
No,

I have FC3 insalled on my Laptop and want to connect to a remote Solaris Machine using SSH but do not want to be prompted for remote password each time I connect.

Suppose I am logged in as local user local/localpwd and want to connect as remote user remote/remotepwd with "ssh -l remote remotehost " -->I do not want to be prompted forpassword remotepwd.

Hope it would clarify...
Thanks
for your quick response
Reply With Quote
  #4  
Old 11th May 2005, 03:49 PM
blammo's Avatar
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
Okay, you can find the info you need by looking at "man ssh-keygen". It involves creating the key pair and transfering the public key to the server, creating the directories, etc. Even though it's convenient, I don't think it's a secure practice!
Reply With Quote
  #5  
Old 11th May 2005, 05:47 PM
scorbel Offline
Registered User
 
Join Date: May 2004
Age: 37
Posts: 70
Tried it using lussh (which does the ssh-keygen) but itw orks for certain users and not for others...
Sometimes public key authentication could not be configured...for certain couple user/server
Do you have an idea ..

Thanks
JO
Reply With Quote
  #6  
Old 12th May 2005, 02:53 AM
blammo's Avatar
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
I haven't messed with this stuff but I googled it and ran across an article that I found very interesting. Pretty much runs the gamut of this kind of authentication. Good read!

http://www-106.ibm.com/developerwork...ry/l-keyc.html
Reply With Quote
  #7  
Old 12th May 2005, 09:02 AM
scorbel Offline
Registered User
 
Join Date: May 2004
Age: 37
Posts: 70
Finally solved the isseu it was the rights access defined for .ssh folder on the remote host.
must be :
drwxr-xr-x 2 jalserge 770 4096 May 11 11:46 .ssh

Thanks
a lot
Reply With Quote
  #8  
Old 12th May 2005, 10:50 AM
geesun Offline
Registered User
 
Join Date: May 2005
Posts: 6
in the host linux we need do this:
1.$:cd ~/
$:mkdir .ssh
$:cd .ssh
$:ssh-keygen -t dsa
answer all as default (Enter is ok),it will generate two files: id_dsa id_dsa.pub
2. cp id_dsa.pub to the server u want to login (u can use ftp or scp .etc)
3. login the server, then do
cd ~/
mkdir .ssh
cp id_dsa.pub ~/.ssh
cat id_dsa.pub >>authorized_keys
after that. u can login the server from the host without passwd.

Last edited by geesun; 12th May 2005 at 10:56 AM.
Reply With Quote
  #9  
Old 10th June 2005, 06:49 PM
capnlinux Offline
Registered User
 
Join Date: Jun 2005
Posts: 109
It is really a good idea to put a pass-phrase on your private key during the keygen process. This makes it a tad less convenient for you, but a lot harder for anyone who somehow gains access to your private key file.
Reply With Quote
Reply

Tags
authentication, key, public, setup, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoSSH public/private key authentication problem ndolf Servers & Networking 5 11th December 2007 09:53 AM
HOWTO - Setup the SSH server to use keys for authentication raoul Links 2 18th October 2005 01:08 PM
Only allow ssh login with public key authentication? Tiembo Security and Privacy 1 12th October 2005 05:01 AM
Authentication Rejected, reason : None of the authentication protocols > > specified alphonsebrown Using Fedora 8 5th April 2005 09:06 AM


Current GMT-time: 05:58 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat