# Deploying from windows using deprec at slicehost

**URL:** <https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525>\
**Category:** Deployment\
**Created:** [March 10, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525 "2008-03-10T23:55:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@jose\_d](https://www.ruby-forum.com/u/jose_d)\
**Post date:** [March 10, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525/1 "2008-03-10T23:55:05Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![jose\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@jose\_d](https://www.ruby-forum.com/u/jose_d)\
**Post date:** [March 11, 2008, 12:08am UTC](https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525/2 "2008-03-11T00:08:29Z")

</div>

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)”

---

<div class="post-metadata">

**Author:** ![jose\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@jose\_d](https://www.ruby-forum.com/u/jose_d)\
**Post date:** [March 11, 2008, 11:45am UTC](https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525/3 "2008-03-11T11:45:15Z")

</div>

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.
