LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2011, 01:03 PM   #1
kerohoki
LQ Newbie
 
Registered: May 2011
Posts: 6

Rep: Reputation: 10
Question Sharing SSH keys


Hello,

I have dual boot of Fedora & Debian. I have SSH key on Debian which is registered to connect to an online repository.

Is it possible to connect to the online repo with Fedora using the SSH key in the Debian partition? Is their a way to import the keys to Fedora partition?

I tried copy pasting id_rsa , id_rsa.pub , known_hosts.
However, that did not work.

Please help.
 
Old 05-21-2011, 01:31 PM   #2
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
Yes that will work, make sure u setup the .ssh and pub key files with the correct permissions.700 and 600
 
Old 05-22-2011, 12:37 PM   #3
kerohoki
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by droyden View Post
Yes that will work, make sure u setup the .ssh and pub key files with the correct permissions.700 and 600
I did that but i m getin error.

Code:
Permission denied (publickey).
 
Old 05-22-2011, 12:56 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
I don't know for sure what you mean by copy/pasting files. If you copy both the private and public keys, it should work. Make sure you log in using the same user name as the server expects.

Try using "ssh -vv" to provide debug information. Check the permissions of the id_rsa & id_rsa.pub files. Check the permissions of the .ssh and your HOME directory. Global read or write access (the 'o' bit) on any of these will result in ssh refusing to authenticate.
 
Old 05-22-2011, 01:21 PM   #5
kerohoki
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by jschiwal View Post
I don't know for sure what you mean by copy/pasting files. If you copy both the private and public keys, it should work. Make sure you log in using the same user name as the server expects.

Try using "ssh -vv" to provide debug information. Check the permissions of the id_rsa & id_rsa.pub files. Check the permissions of the .ssh and your HOME directory. Global read or write access (the 'o' bit) on any of these will result in ssh refusing to authenticate.
Yes, you are right. It was issue of permission. It worked when i set all files to 666.
Is there a more restricted chmod for which it will work?

Also, is there a way to debug cvs connect, like you mentioned 'ssh -vv'?

Last edited by kerohoki; 05-22-2011 at 01:24 PM.
 
Old 05-26-2011, 12:43 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The permissions for my .ssh directory is 0700. For .ssh/id_rsa is 0600. The .ssh/id_rsa.pub can be 666. The main thing to keep in mind is that a different user should not have permission to reach or read the files which should be private.

I don't know about cvsconnect. Try the manpage. If there is a verbose option, it should be listed there.

Please forgive post #6 just above. I must have posted in the wrong tab. I have reported it to the mods of General to have it deleted.

Last edited by jschiwal; 05-26-2011 at 12:51 PM.
 
  


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
passwordless ssh without ssh keys Four Linux - General 1 04-27-2011 02:20 AM
How to set SSH keys on SSH server mansour Linux - Newbie 27 01-16-2011 11:44 AM
SSH host keys are not being read correctly from .ssh/known_hosts. bartonski Linux - Software 3 10-29-2009 04:40 PM
SSH host keys VS SSH keys kenneho Linux - Security 3 09-11-2008 06:03 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration