LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-23-2008, 12:58 PM   #1
WestsideGuy
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Create Directory? ssh/svn help


Hi,

I am literally 100% new to unix, but have quite a bit of experience working in Windows, I hope saying Windows here does not cause folks to ignore my need for help

In any case, I am trying to configure ssh/svn. My instructions say to do this, but I am at a loss on how to do it. I am logged on to the server and I see the unix command prompt, "user@servname:~$"

* have a .ssh directory whose permissions have been set as chmod 700 .ssh
* cd to the .ssh directory and create an authorized_keys file.
* Cut and paste the contents from the generated public key. The generated public key will look like:

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-2003434"
AAAAB3NzaC1yc2EAAAABJQAAAIEAqTffMAzRckp6px9FXUCn0r WzXKcu36ap8666
r7VBCjUDh5g+dfdfdfddfdfdf/qVLbjzDPKSj2ANdS6U7xFYgUDoNE1nuVUbYhf
1D5kY+4S7Q4muG+bGN8/PZhipJgkbW9D9Rl9n4Y655zDlJzlgbtxT94s2RQwPWAS
sIlZJmk=
---- END SSH2 PUBLIC KEY ----

How in the world do I do this?

Thanks

-Westside
 
Old 07-23-2008, 02:57 PM   #2
clint1986
LQ Newbie
 
Registered: Jul 2008
Location: Devon, United Kingdom
Distribution: Debian
Posts: 24

Rep: Reputation: 15
First, you are being asked to make a directory called .ssh if it doesn't already exist. In the console, you need to use the mkdir command:

Code:
mkdir .ssh
Next, set the permissions on the folder:

Code:
chmod 700 .ssh
Next, you are being asked to go into the .ssh directory (or folder) to create your authorized_keys file. In the console, do the following:

Code:
cd .ssh
Now you are inside the .ssh directory. Next, you need to open a text editor. Usually there will either be Pico or Nano available to you. Try running either of these from the console:

Code:
pico authorized_keys
nano authorized_keys
You will now be in a text editor. You should be able to just cut and paste the key into the editor then use CTRL + O to write the file, then CTRL + X to exit.

To check you have done everything correctly, do this when inside the .ssh directory:

Code:
cat authorized_keys
What you pasted in the file should scroll down the console.

Hope this helps. Come back if you have any problems. :)
 
Old 07-23-2008, 03:28 PM   #3
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
Are you having trouble generating RSA keys?

You'll need to do that per user:

ssh-keygen -t rsa -b 1024
<press enter 3 times>

The key you want will be in .ssh/id_rsa.pub, from the client machine, you can simply do this:

ssh user@server 'cat - >> .ssh/authorized_keys' < .ssh/id_rsa.pub

Of course this is assuming linux client, if you need help from a windows client just ask here.

Hope this helps.

Almost forgot, you'll probably need to add a command directive before each key...it should be in whatever directions you got. Make sure you edit each key accordingly (see clint1986's good instructions on editing to get a good start).

Last edited by kenoshi; 07-23-2008 at 03:36 PM.
 
  


Reply



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
SVN +SSH + SMB connection is slow jazee Linux - Networking 0 05-19-2008 03:01 PM
Svn: Create repository and Tortoisesvn ArthurHuang Linux - Software 0 10-08-2007 11:14 PM
Setting up SVN access through SSH UmneyDurak Ubuntu 0 09-24-2007 11:42 PM
sftp/svn+ssh connect problem goggo Linux - Newbie 3 03-18-2007 06:39 AM
svn+ssh hgb Linux - Server 1 10-10-2006 06:35 AM

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

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration