The first user is Capistrano. Error not returned, but code not loaded

I am following this lesson.

I am working with WebFaction. It should be noted that WF uses NginX, not Passenger.

So, after I went through all this, I type:

cap deploy

It returns after entering my password (right?):

Password: 
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/shadyfront/webapps/age_of_revolt/releases/20110211211509; true"
    servers: ["174.133.20.24"]
 ** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: 174.133.20.24 (Net::SSH::AuthenticationFailed: shadyfront)
connection failed for: 174.133.20.24 (Net::SSH::AuthenticationFailed: shadyfront)

I am sure that this is where he is mistaken. Any ideas what the mistake is?

Thanks everyone!

I see a few special errors here:

+3
source share
2 answers

connection failed for: 174.133.20.24 (Net::SSH::AuthenticationFailed: shadyfront)

This error tells you that your login is failing. Typically, you would like to use public key logic for the cap, so you do not need to enter a password all the time. However, the password method should work.

  • Double check your password.
  • , ssh shadyfront@174.133.20.24 .
+4

~/.ssh/config:

KeepAlive yes
User shadyfront
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa
HostbasedAuthentication no
+3

Source: https://habr.com/ru/post/1791581/


All Articles