2

I am trying to deploy a Meteor based project. I'm using nitrous.io, digital ocean for the server, and compose.io for MongoDB.

I already wanted to finish my deployment and run the "mup setup" command and had got this message:

Meteor Up: Production Quality Meteor Deployments


sshpass required for password based authentication

After trying to install sshpass from here http://git.io/_vHbvQ, and running the command "apt-get install sshpass" I have got the following errors:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I also tried another way to install sshpass (also described here http://git.io/_vHbvQ) by creating the folder configure:

action@steady-meteor-55-179639:~/workspace/MeteorProject/configure$ sudo make install

----- WARNING: sudo access is not available; running without sudo.

----- make: *** No rule to make target install'. Stop.
action@steady-meteor-55-179639:~/workspace/MeteorProject/configure$ make install
make: *** No rule to make target
install'. Stop.

Configure folder is located in this way: ~/workspace/MeteorProject/configure/sshpass-1.05

My mup.json file looks like this:

{
  // Server authentication info
  "servers": [
    {
      "host": "XXX.XXX.XX.XX",
      "username": "root",
      "password": "123456789"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],
4

1 回答 1

3

我将总结@Akshat 解释的内容(特别感谢@Akshat 的帮助)

root访问,apt-get目前在 nitrous.io 中不提供

为了解决这个问题,您需要创建私钥来验证您的服务器。野兔解释了如何做到这一点:digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

创建私钥后,您需要将 mup.json 配置为使用 keyfile/pem(可能您将其作为注释,只需删除注释符号)而不是密码,并确保将密码注释掉。

就这些!

于 2015-01-14T17:43:01.853 回答