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

1st April 2006, 06:37 AM
|
 |
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
|

1st April 2006, 07:15 AM
|
|
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
|

1st April 2006, 07:55 AM
|
 |
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
|

1st April 2006, 09:19 AM
|
|
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
|

1st April 2006, 10:25 AM
|
|
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)
|

3rd April 2006, 04:01 AM
|
 |
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
|

3rd April 2006, 09:19 AM
|
 |
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
|

3rd April 2006, 07:13 PM
|
|
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.
|

3rd April 2006, 07:15 PM
|
 |
Registered User
|
|
Join Date: Dec 2005
Posts: 455

|
|
|
|

4th April 2006, 10:11 AM
|
|
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.
|

4th April 2006, 07:13 PM
|
|
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:
|

6th April 2006, 09:40 PM
|
|
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.
|

17th April 2006, 06:03 AM
|
 |
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 09:28 (Saturday, 18-05-2013)
|
|
 |
 |
 |
 |
|
|