Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st April 2006, 06:37 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
ssh keys (to avoid typing password)

Having problem setting up above... here's EXACTLY what I did
- generate key, put it in ~/.ssh
- copy the key.pub file into remote@server:~/.ssh/
- on the remote server, cat ~/.ssh/key.pub authorized_keys
- on the remote server, chmod 700 authorized_keys

But when I test from the client with ssh -i ~/.ssh/key remote@server I'm still getting asked for a password.

I am logged into both machines as the same username.

Any help much appreciated, I have read several articles and followed their (identical) instructions to the letter and thought I understood the logic but obviously theres something dumb I missed???
__________________
the phases of 'nix troubleshooting

For :eek:
:confused: | google > :D
Next
Reply With Quote
  #2  
Old 1st April 2006, 07:15 AM
ibpalle Offline
Registered User
 
Join Date: Jun 2004
Age: 47
Posts: 63
I believe the permissions should be 600 - check your /var/log/secure file after restarting ssh and trying to log in.
__________________
Hehe
Reply With Quote
  #3  
Old 1st April 2006, 07:55 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
no luck, did chmod 600 and restarted SSHD on the server and still same result.

the log file doesn't seem to even acknowledge any attempt to check the public key file!
maybe my syntax for using ssh is wrong?
__________________
the phases of 'nix troubleshooting

For :eek:
:confused: | google > :D
Next
Reply With Quote
  #4  
Old 1st April 2006, 09:19 AM
baschti Offline
Registered User
 
Join Date: Nov 2005
Location: Old Europe
Posts: 377
hi johannlo,
maybe this is a typo, but you said "here's EXACTLY what I did"
so: cat ~/.ssh/key.pub authorized_keys won't work
either you use
Code:
cat ~/.ssh/key.pub > ~/.ssh/authorized_keys                //or
cp ~/.ssh/key.pub ~/.ssh/authorized_keys
__________________
my JID: baschti@jabber.ccc.de
Reply With Quote
  #5  
Old 1st April 2006, 10:25 AM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
have you rechecked your /etc/sshd/sshd_config file?

what does verbose ssh mode says? (ssh -v)
Reply With Quote
  #6  
Old 3rd April 2006, 04:01 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
thanks for tips, will check when I get home!

cheers
__________________
the phases of 'nix troubleshooting

For :eek:
:confused: | google > :D
Next
Reply With Quote
  #7  
Old 3rd April 2006, 09:19 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
is it the ssh_config or sshd_config file?
Also, I presume you are talking about editing the CLIENT machine's config?

cheers
__________________
the phases of 'nix troubleshooting

For :eek:
:confused: | google > :D
Next
Reply With Quote
  #8  
Old 3rd April 2006, 07:13 PM
mickeyboy Offline
Registered User
 
Join Date: Jun 2004
Location: Indianapolis,Indiana
Age: 73
Posts: 143
But when I test from the client with ssh -i ~/.ssh/key remote@server I'm still getting asked for a password.

Am I loosing something here?, ssh will always ask for password for remote box.
Reply With Quote
  #9  
Old 3rd April 2006, 07:15 PM
axelseap's Avatar
axelseap Offline
Registered User
 
Join Date: Dec 2005
Posts: 455
following this guide worked for me http://www.raoul.shacknet.nu/2005/11/10/ssh-with-keys/
Reply With Quote
  #10  
Old 4th April 2006, 10:11 AM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
i did a whole test of these commands and it was working with FC1 to FC4.
Reply With Quote
  #11  
Old 4th April 2006, 07:13 PM
panama Offline
Registered User
 
Join Date: Oct 2004
Posts: 138
I have FC5 and followed the instruction and it did not work.
__________________
If you don't know your purpose, you will spend a lifetime not fulfilled. :rolleyes:
Reply With Quote
  #12  
Old 6th April 2006, 09:40 PM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
i tested it with FC5 with both default kernel and kernel upgraded, it works fine.

can you post line by line (again) the commands that you were doing,
perhaps we can get a lead from that.
Reply With Quote
  #13  
Old 17th April 2006, 06:03 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
found the goddarned problem!!!! after looking at /var/log/secure, turned out it was the PERMISSIONS for my home directory.

I dunno why but I had to enable execute access for my group to allow my media centre access to my home directory via samba. (read access wasn't good enough apparently). As soon as I turned this off, hey presto.
__________________
the phases of 'nix troubleshooting

For :eek:
:confused: | google > :D
Next
Reply With Quote
Reply

Tags
avoid, keys, password, ssh, typing

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
mounting vfat partition without typing su password mio Using Fedora 3 26th January 2009 08:30 PM
What is the correct behaviour for multimedia keys/function keys? Dead1nside Hardware & Laptops 0 16th July 2008 01:28 AM
Avoid typing firewall password everytime... FedoraSuperFan Using Fedora 2 9th November 2007 06:09 PM
ssh/scp with no password using keys mitchell2345 Using Fedora 7 26th October 2007 09:18 PM
Keys not mapped correctly & missing keys. we6jbo Hardware & Laptops 0 12th September 2007 10:10 PM


Current GMT-time: 03:09 (Sunday, 26-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