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 11th April 2005, 06:45 PM
mjman Offline
Registered User
 
Join Date: Oct 2004
Posts: 286
SSH acting funny. Can connect to one computer, but not another.

I have a strange situation going on. I have three computers, one laptop and two desktops. I need to connect, from the laptop, to the desktops, using ssh. So, I am trying to set up ssh with public key authentication (dsa).

I created the keypair using ssh-keygen. This created files in ~/.ssh: id_dsa and id_dsa.pub.
I copied id_dsa.pub to the file ~/.ssh/authorized_keys on both desktops.
I can now connect to one of the computers using the dsa keypair, but the other computer does not accept it.
I cannot figure out why this is the case, as sshd is configured the same way on both desktops.
Reply With Quote
  #2  
Old 11th April 2005, 06:50 PM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
When the other computer "does not accept" your key, what is logged on it (/var/log/messages and/or /var/log/secure) from the connection attempt?

What is the error you get at your client?

Check CAREFULLY the permissions on ~/.ssh itself and authorized_keys.

drwxr-xr-x 2 root root 4096 Feb 16 14:28 .ssh
-rw-r--r-- 1 root root 232 Feb 16 14:21 authorized_keys2

Check that you may have changed /etc/ssh/sshd_config to only accept SSH v2 traffic. In this case authorized_keys needs to be called authorized_keys2.
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
  #3  
Old 11th April 2005, 06:55 PM
mjman Offline
Registered User
 
Join Date: Oct 2004
Posts: 286
Ahhah!
Code:
Apr 11 13:54:04 sshd[4993]: Authentication refused: bad ownership or modes for directory /home/----/.ssh
Reply With Quote
  #4  
Old 11th April 2005, 06:59 PM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
You're on the $PATH to enlightenment, my son ;-)
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
  #5  
Old 11th April 2005, 07:00 PM
mjman Offline
Registered User
 
Join Date: Oct 2004
Posts: 286
doing a chmod g+r on .ssh fixed it.

Thanks for the help =).
Reply With Quote
Reply

Tags
acting, connect, funny, 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
wget is acting funny. Jeff Sadowski Servers & Networking 2 9th May 2007 07:27 PM
Funny : connect google but nothing else ! hugo.vdb Using Fedora 7 10th November 2006 02:32 AM
Brand new nVidia card acting funny cypher543 Hardware & Laptops 6 10th August 2006 03:05 PM


Current GMT-time: 22:46 (Sunday, 19-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