ployground / ploy

A tool to manage servers through a central configuration. Plugins allow provisioning, configuration and other management tasks.
http://ploy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
78 stars 15 forks source link

SSH login #16

Closed fenris closed 10 years ago

fenris commented 13 years ago

if we see inside aws.conf , server_user = ubuntu

but when i run the : aws ssh demo-webserver its say please use users rather than root ... im not sure is it a problem/bugs that u guys should look into it ..

btw ... mr.awsome is REALLY AWESOME !! :)

cocoy commented 13 years ago

hmm..ive added some modification on my github to be able to login as a different user: http://github.com/cocoy/mr.awsome/commit/cfcce3865437ff0e1ad6a1d0ea990755aa5f3884

fenris commented 13 years ago

ok thanks .. so should i get the latest code n rebuild back ?

cocoy commented 13 years ago

if you did git clone and editted the file(s), just do python setup.py develop to work on your copy. Your changes will reflect on it.

fenris commented 13 years ago

ok thanks .. done but i having this warning even the codes work for me

/Library/Python/2.6/site-packages/pycrypto-2.0.1-py2.6-macosx-10.6-universal.egg/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import warnings /Library/Python/2.6/site-packages/pycrypto-2.0.1-py2.6-macosx-10.6-universal.egg/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead import warnings

cocoy commented 13 years ago

Upgrade to pycrypto 2.3. remove the old version first with pip uninstall pycrypto and do pip install pycrypto. Though there is another warning that will appear...about randpool.py, RandomPool_DeprecationWarning. :)

fenris commented 13 years ago

$ sudo port uninstall py26-crypto @2.0.1_1 ---> Unable to uninstall py26-crypto 2.0.1_1, the following ports depend on it: ---> py26-paramiko ---> bzr Error: port uninstall failed: Please uninstall the ports that depend on py26-crypto first.

cocoy commented 13 years ago

hmm.. :) i think it's better to use virtualenv and install needed packages for python project. That way, it would not break the OS packages. what do you think?

fenris commented 13 years ago

i already dload the pycrypto 2.3 n install it .. but how to use pip install pycrypto?

cocoy commented 13 years ago

if you dont have pip installed you can do easy_install pip

fenris commented 13 years ago

$ sudo pip-2.6 install upgrade pycrypto Downloading/unpacking upgrade Could not find any downloads that satisfy the requirement upgrade No distributions at all found for upgrade

fschulze commented 10 years ago

The user option is used to set the default user. No idea about pycrypto.