Deploying from windows using deprec at slicehost

I am trying to setup my WinXP to deploy a rails app to slicehost using
deprec, just following the nice tutorial from this link
http://crackthenut.cracklabs.com/deprec2-your-slice-from-windows/ , but
I am getting an error in the step “2.3 Create a new user on the slice to
do your deployment with”.

since here everthing was ok, I double checked everthing. The cap deprec
add user command creates the user, but it seems to failed to config my
public key to the server.

I am looking for a way to get this working, deploy from windows, I
choose slicehost to use deprec.

The instructions ask to install deprec2 and cap2, but maybe I should
use deprec1.

so, my questions are … what´s going wrong? and Should I try
something diferent instead of using deprec?

Here was I did:

C:\config_slices>cap deprec:users:add USER=root HOSTS=67.207.142.104

  • executing `deprec:users:add’
    Enter userid for new user |root|
    cunha
    Should this be an admin account? |no|
    yes
    I’ve found an authorized_keys file for cunha. Should I copy it out?
    |yes|

Enter new password for cunha

  • executing “sudo -p 'sudo password: ’ grep ‘^cunha:’ /etc/passwd ||
    sudo /usr
    /sbin/useradd --shell=/bin/bash --create-home cunha”
    servers: [“67.207.142.104”]
    Password:
    [67.207.142.104] executing command
    command finished
  • executing “sudo -p 'sudo password: ’ passwd cunha”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    ** [67.207.142.104] Enter new UNIX password:
    ** [67.207.142.104] Retype new UNIX password:
    ** [67.207.142.104] passwd: password updated successfully
    command finished
  • executing “sudo -p 'sudo password: ’ grep ‘admin:’ /etc/group || sudo
    /usr/s
    bin/groupadd admin”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    command finished
  • executing “sudo -p 'sudo password: ’ groups cunha | grep ’ admin ’ ||
    sudo /
    usr/sbin/usermod -G admin -a cunha”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    command finished
  • executing “sudo -p 'sudo password: ’ sh -c '\n grep -F "%admin ALL=(
    ALL) ALL" /etc/sudoers > /dev/null 2>&1 || \n test ! -f /etc/sudoers
    ||\n
    echo "%admin ALL=(ALL) ALL" >> /etc/sudoers\n '”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    command finished
  • executing `deprec:ssh:setup_keys’
  • executing “sudo -p 'sudo password: ’ sh -c ‘test -d /home/cunha/.ssh
    || mkdi
    r -p /home/cunha/.ssh’”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    command finished
  • executing “sudo -p 'sudo password: ’ chmod 700 /home/cunha/.ssh”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    command finished
  • executing “sudo -p 'sudo password: ’ chown -R cunha.users
    /home/cunha/.ssh”
    servers: [“67.207.142.104”]
    [67.207.142.104] executing command
    command finished
    c:/ruby/lib/ruby/gems/1.8/gems/deprec-1.99.14/lib/deprec/recipes/ssh.rb:85:in
    `r
    ead’: Permission denied - config/ssh/authorized_keys/cunha
    (Errno::EACCES)
    from c:/ruby/lib/ruby/gems/1.8/gems/deprec-1.99.14/lib/deprec/recipes/ss
    h.rb:85

Thanks in advance

Jose carlos Da cunha jr wrote:

c:/ruby/lib/ruby/gems/1.8/gems/deprec-1.99.14/lib/deprec/recipes/ssh.rb:85:in
`r
ead’: Permission denied - config/ssh/authorized_keys/cunha
(Errno::EACCES)
from c:/ruby/lib/ruby/gems/1.8/gems/deprec-1.99.14/lib/deprec/recipes/ss
h.rb:85

Thanks in advance

I think the error msg wasn´t clear. The error is that:

“Permission denied - config/ssh/authorized_keys/cunha > (Errno::EACCES)”

Jose carlos Da cunha jr wrote:

Jose carlos Da cunha jr wrote:

c:/ruby/lib/ruby/gems/1.8/gems/deprec-1.99.14/lib/deprec/recipes/ssh.rb:85:in
`r
ead’: Permission denied - config/ssh/authorized_keys/cunha
(Errno::EACCES)
from c:/ruby/lib/ruby/gems/1.8/gems/deprec-1.99.14/lib/deprec/recipes/ss
h.rb:85

Thanks in advance

I think the error msg wasn´t clear. The error is that:

“Permission denied - config/ssh/authorized_keys/cunha > (Errno::EACCES)”

I fix this issue, I put my public key file in a wrong folder. So, this
command works very fine… now, I must config my SVN server to go
further.