Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-23-2008, 12:58 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 1

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


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:

Comment: "rsa-key-2003434"
AAAAB3NzaC1yc2EAAAABJQAAAIEAqTffMAzRckp6px9FXUCn0r WzXKcu36ap8666

How in the world do I do this?


Old 07-23-2008, 02:57 PM   #2
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:

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

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:

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:

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:

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
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/, from the client machine, you can simply do this:

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

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 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.


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration