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.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #14  
Old 5th March 2012, 05:54 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118
linuxchrome
Re: adding a local user to my linux machine

I had a look at the guide you linked to. What it's doing is having you put the public ssh key from each user who is going to be authorized to access the git repo into the /home/git/.ssh/authorized_keys file. What the guide isn't telling you is how to generate an ssh key pair (I guess it assumes you already know how or have already had each user do so).

Each user who is going to access the git repo needs to have run, at a minimum,
Code:
$ ssh-keygen -t rsa
That will generate an ssh key pair, a private key and a public key (id_rsa and id_rsa.pub) It's the id_rsa.pub file from each user that is then appended into the /home/git/.ssh/authorized_keys file. Wtih that, the users should then be able to ssh into the git user account without having to type a password.

Speaking of which, you haven't mentioned setting a password for the git user you created. To do that, as root:
Code:
passwd git
enter a password for git (in the blind)
enter the password a second time when prompted (again, in the blind)
If you had switched to root and then created the /home/git/.ssh directory, then that directory would be owned by root, not user git. If that's the case, correct that with:
Code:
chown -R git:git /home/git
I see the guide sets up the actual git repo in /opt/git/

Last edited by PabloTwo; 5th March 2012 at 05:57 PM.
Reply With Quote
 

Tags
adding, linux, local, machine, user

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
Sending mail to a 'local' user who is actually not local danscott Servers & Networking 0 28th February 2010 05:03 PM
Problems to boot after "adding new disk to VMware machine in Linux" erino Installation and Live Media 1 30th January 2008 07:34 PM
How to mount ntfs in other Machine to my local linux box? Stevenisme Servers & Networking 3 6th December 2004 12:23 PM


Current GMT-time: 22:35 (Saturday, 18-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