[Tdg] Code commit
Graham Wakefield
wakefield at mat.ucsb.edu
Fri Mar 2 17:27:51 PST 2007
Indeed it was permissions (see term session below)
HOORAY! Thanks.
SvnX also works now. Thank you very much!
Last login: Fri Mar 2 17:15:51 on ttyp2
Welcome to Darwin!
g:~ grahamwakefield$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/grahamwakefield/.ssh/
id_rsa):
/Users/grahamwakefield/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/grahamwakefield/.ssh/
id_rsa.
Your public key has been saved in /Users/grahamwakefield/.ssh/
id_rsa.pub.
The key fingerprint is:
a3:de:f1:93:62:06:a7:8b:06:bf:43:9b:79:66:cc:49 grahamwakefield at g.local
g:~ grahamwakefield$ scp ~/.ssh/id_rsa.pub
wakefield at rails.mat.ucsb.edu:~/.ssh/authorized_keys
Password:
id_rsa.pub 100%
405 0.4KB/s 00:00
g:~ grahamwakefield$ ssh wakefield at rails.mat.ucsb.eduPassword:
Last login: Fri Mar 2 16:42:10 2007 from freeip83.mat.ucsb.edu
wakefield at maize ~ $ cd .ssh
wakefield at maize ~/.ssh $ ls -l
total 12
-rw-r--r-- 1 wakefield 24666 405 Mar 2 16:46 authorized_keys
-rw------- 1 wakefield 24666 668 Sep 26 2005 id_dsa
-rw-r--r-- 1 wakefield students 1125 Mar 2 16:26 id_dsa.pub
wakefield at maize ~/.ssh $ date
Fri Mar 2 16:47:31 PST 2007
wakefield at maize ~/.ssh $ cd ..
wakefield at maize ~ $ chmod go-w . .ssh .ssh/authorized_keys
wakefield at maize ~ $
Last login: Fri Mar 2 17:19:47 on ttyp1
Welcome to Darwin!
g:~ grahamwakefield$ ssh wakefield at rails.mat.ucsb.eduLast login: Fri
Mar 2 16:47:23 2007 from freeip83.mat.ucsb.edu
wakefield at maize ~ $
On Mar 2, 2007, at 5:15 PM, Jorge Castellanos wrote:
> mhhh
>
>
> try doing rsa instead of dsa,
>
> so replace ssh-keygen -t dsa for ssh-keygen -t rsa
>
> also, if it keeps asking for password, check the permissions of the
> file in the rails server
>
> chmod go-w . .ssh .ssh/authorized_keys
>
> j
>
>
>
> On Mar 2, 2007, at 8:09 PM, Graham Wakefield wrote:
>
> Hmm, all is happy, the authorized_keys is updated on rails, but...
> ssh still asks for my pwd.
>
> I will do it all again:
>
> Last login: Fri Mar 2 17:03:10 on ttyp1
> Welcome to Darwin!
> g:~ grahamwakefield$ cd .ssh
> g:~/.ssh grahamwakefield$ ssh-keygen -t dsa
> Generating public/private dsa key pair.
> Enter file in which to save the key (/Users/grahamwakefield/.ssh/
> id_dsa):
> /Users/grahamwakefield/.ssh/id_dsa already exists.
> Overwrite (y/n)? y
> Enter passphrase (empty for no passphrase):
> Enter same passphrase again:
> Your identification has been saved in /Users/grahamwakefield/.ssh/
> id_dsa.
> Your public key has been saved in /Users/grahamwakefield/.ssh/
> id_dsa.pub.
> The key fingerprint is:
> 59:42:09:e4:b7:fe:32:0c:e7:18:00:f9:b5:33:ed:10
> grahamwakefield at g.local
> g:~/.ssh grahamwakefield$ scp ~/.ssh/id_dsa.pub
> wakefield at rails.mat.ucsb.edu:~/.ssh/authorized_keys
> Password:
> id_dsa.pub 100%
> 1125 1.1KB/s 00:00
> g:~/.ssh grahamwakefield$ ssh wakefield at rails.mat.ucsb.edu
> Password:
> Last login: Fri Mar 2 16:32:52 2007 from freeip83.mat.ucsb.edu
> wakefield at maize ~ $ cd .ssh
> wakefield at maize ~/.ssh $ ls -l
> total 12
> -rw-r--r-- 1 wakefield 24666 1125 Mar 2 16:32 authorized_keys
> -rw------- 1 wakefield 24666 668 Sep 26 2005 id_dsa
> -rw-r--r-- 1 wakefield students 1125 Mar 2 16:26 id_dsa.pub
> wakefield at maize ~/.ssh $ date
> Fri Mar 2 16:33:24 PST 2007
> wakefield at maize ~/.ssh $
>
> I even logged out/logged in, still asks for pwd on ssh. BTW
> maize's clock is 35 minutes slow.
>
> SvnX: configured with
> svn+ssh://wakefield@rails.mat.ucsb.edu/mat/groups/tdg/svn/
> ->
>
> Permission denied (public key, keyboard interactive).
>
> On Mar 2, 2007, at 11:49 AM, Jorge Castellanos wrote:
>
>> Grahhhhhaaaaaammmm,
>>
>> Aqui va:
>>
>> 1) Configure ssh to authenticate using dsa keys...
>>
>> • Create a folder named ".ssh" in your home directory (if it
>> doesn't exist already)
>> • cd to the .ssh directory and type: "ssh-keygen -t dsa"
>> • it will ask for a paraphrase. Leave it blank (just press enter
>> through the three prompts)
>> • Copy the public key "id_dsa_[ub" to the .ssh directory in your
>> home directory of the remote machine (rails in this case) and
>> rename the file in the remote machine to "authorized_keys". You
>> can do these two steps using:
>> "scp ~/.ssh/id_dsa.pub user at targetServer.com: ~/.ssh/
>> authorized_keys"
>>
>> * Note - Leaving the passphrase blank is not the most secure
>> thing, but that's the way it has to be for xcode and svnx to work.
>> As an alternative, you can use a key manager. I haven't use any,
>> but you could skip all the above and the manager would do all that
>> dynamically every time you connect. I think "SSHKeychain" does
>> that nicely in OSX. Never tried it though.
>>
>> Now you should be able to ssh to your account in rails without
>> entering any password.
>>
>> 2) Configure SvnX
>>
>> • Open the "Repositories" window and create one. Fill the Path
>> field with: svn+ssh://yourUserName@rails.mat.ucsb.edu/mat/groups/
>> tdg/svn/
>> • Double click the repository, and check it out. This should add
>> it to the "Working Copies" window. Now just use the working copy
>> to commit, update, etc...
>>
>> if I forgot something, please fill in...
>>
>> j
>>
>>
>>
>>
>>
>> On Mar 2, 2007, at 1:35 PM, Graham Wakefield wrote:
>>
>> For a svn newbie, could you step me through how you did this?
>> Muchas Gracias!
>>
>> On Mar 2, 2007, at 8:09 AM, Jorge Castellanos wrote:
>>
>>>> If I can figure out my SVN client, I'll try and build an Xcode
>>>> project and add it.
>>>
>>> I've got it go work with SvnX. Using svn+ssh. For that to work
>>> you HAVE to configure password-less authentication (keygen...).
>>>
>>> j
>>>
>>> On Mar 2, 2007, at 3:26 AM, Graham Wakefield wrote:
>>>
>>> If I can figure out my SVN client, I'll try and build an Xcode
>>> project and add it.
>>>
>>> On Mar 1, 2007, at 8:35 PM, Rama Hoetzlein wrote:
>>>
>>>> Ok.. It builds & runs.. The code base has been committed to
>>>> subversion repo.
>>>>
>>>> Heres what's there:
>>>> - New event stuff
>>>> - Minimal application & scheduler
>>>> - Placeholders for event queue, mem pool, etc.
>>>> - Core_easy as a separate library
>>>> - Example system library (graphics)
>>>> - Example app (test_app)
>>>> - Visual Studio solutions + projects
>>>> - lots of other stuff we discussed.
>>>>
>>>> The stuff is in the repository under:
>>>> \core\branch\mint
>>>>
>>>> The libs build a run in VS. I doubt it will build in gcc.. but
>>>> probably not far off.
>>>>
>>>> Rama
>>>>
>>>> _______________________________________________
>>>> Tdg mailing list
>>>> Tdg at mat.ucsb.edu
>>>> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
>>>
>>> _______________________________________________
>>> Tdg mailing list
>>> Tdg at mat.ucsb.edu
>>> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
>>>
>>> _______________________________________________
>>> Tdg mailing list
>>> Tdg at mat.ucsb.edu
>>> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
>>
>> _______________________________________________
>> Tdg mailing list
>> Tdg at mat.ucsb.edu
>> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
>>
>> _______________________________________________
>> Tdg mailing list
>> Tdg at mat.ucsb.edu
>> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
>
> _______________________________________________
> Tdg mailing list
> Tdg at mat.ucsb.edu
> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
>
> _______________________________________________
> Tdg mailing list
> Tdg at mat.ucsb.edu
> http://zydeco.mat.ucsb.edu/mailman/listinfo/tdg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.create.ucsb.edu/pipermail/tdg/attachments/20070302/bc3cc4cf/attachment-0002.html
More information about the Tdg
mailing list