scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

SSH Deployment #16

Closed designermonkey closed 10 years ago

designermonkey commented 11 years ago

Would you consider writing a script for deployment using SSH?

scttnlsn commented 11 years ago

Since you can push/pull Git repositories over SSH I'm not sure there's any advantage of using Danelion. Are you not able to install Git on the server?

designermonkey commented 11 years ago

It's more a security thing, but as we all know, some hosts don't allow us to install git.

I can see your point. It was just an idea :)

scttnlsn commented 11 years ago

Yeah, looks like Ruby's Net::SCP provides an interface very similar to Net::SFTP. Pull request? Otherwise, I can try implementing this when I have some time.

designermonkey commented 11 years ago

Sadly, I am not a Ruby dev.

creativecoder commented 11 years ago

Thanks for this excellent little gem. I have a number of smaller scale web dev clients who are on shared hosting and either don't have SSH access or don't have git in their hosting server. This is very helpful.

I would second the SSH key feature. It would be great if dandelion would use my ssh-agent and ssh config file to login to the server via SSH (when available) so I don't have to put passwords in plain text files. I do leave dandelion.yml out of version control, for this reason.

creativecoder commented 11 years ago

Just discovered that you can use SSH keys with dandelion and SFTP. You must manually add the key to your ssh agent from the command line: ssh-add ~/.ssh/mykey

Very nice!

theDanielJLewis commented 10 years ago

To refresh this topic, what are the actual steps I need to take to switch to SSH? What do I change in the .yml file?

scttnlsn commented 10 years ago

@DanielJLewis There's still no SSH adapter.

creativecoder commented 10 years ago

You can use an ssh key to connect via SFTP, instead of using a password in the configuration file (if the server supports connecting to SFTP with an SSH key).

scttnlsn commented 10 years ago

@creativecoder @DanielJLewis I'll update the docs w/ this info.

scttnlsn commented 10 years ago

I'm going to close this issue since I don't see any need to implement an SSH adapter. Please re-open if SFTP + SSH key is not sufficient.