Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Juju does not associate keyfiles with the instances it creates, so you cannot ssh with them. I tried connecting with filezilla using port 22 (open) using the username juju-admin and the admin-secret found in environments.yaml and it did not work. I would like to edit some of the wordpress content files. I am running on ec2 with nfs charm associated to wordpress.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Ah... windows client.

There is a free ssh client called PuTTY.

It is possible that the client allowed you to create instances that have no authorized keys. Check this by running:

juju get-env authorized-keys

You may need to create a key pair using PuTTY, and add the public key to the authorized-keys. Unfortunately this wouldn't help any machines already running.

Probably best to just destroy that environment and start another one.

share|improve this answer
    
Okay, i created a small instance with ubuntu, lxde, and xrdp. I remote into that for juju bootstrap and everything works fine. I stop it when I'm not using it so it costs me next to nothing for the convenience. Thanks for all the help. –  airfluyt Dec 4 '13 at 0:27
    
Is there a way to create a vsftpd user with full root privileges? How do most people edit files created by juju? –  airfluyt Dec 4 '13 at 2:37

By running juju status you can get the name of the machine ex) wordpress/0 You can then ssh into that machine using juju ssh wordpress/0.

The juju status command also gives you the ip address, among other data, of the machine so you can create ssh tunnels and the like with ease.

In order to FTP into your ec2 machine you will need to install an ftp server such as vsftpd on your machine. There is also a charm https://jujucharms.com/fullscreen/search/precise/vsftpd-1/?text=ftp which you can deploy to your wordpress node using the details here https://juju.ubuntu.com/docs/charms-deploying.html#deploying-to-machines

share|improve this answer
    
Thank you. Is there a way to set up ftp through a client such as filezilla? My main issue with scp is it is so difficult to mentally keep track of where every relevant file is in the folder hierarchy and what its exact name. –  airfluyt Dec 2 '13 at 20:14
    
I have updated the answer to include details about setting up an ftp server. –  hatch Dec 2 '13 at 20:23
    
Hate to keep bugging you, but I can't get it to work. I deployed wordpress and vsftpd to the same machine. I added a user and password to vsftpd. But login to ftp via port 21 fails in both filezilla and browser. Browser login just fails to connect, filezilla connects, gets welcome message etc, then switching to binary, pasv, econnaborted. Is there any additional set up for vsftpd other than that which is available via the charm's config in juju-gui? –  airfluyt Dec 2 '13 at 22:01
    
Also, should add vsftpd is exposed and nothing else is on that node. –  airfluyt Dec 2 '13 at 22:25
    
and "juju ssh wordpress/0" fails with "ERROR exec: "ssh": executable file not found in %PATH%" –  airfluyt Dec 2 '13 at 22:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.