Deploy to SFTP with Private Key possible?

Would it be possible to set up Scriptcase hosted on a Linux Server to use SFTP to deploy to an external SFTP server using a Private Key?
I would like to eliminate the extra step of download and uploading ZIP files to deploy to production.

Thanks for any suggestions!

I have found no way of doing this. Amazon AWS Lightsail, which is where I decided to host my latest client system only uses SSH Private Keys for SSH access. I am unable to get Scriptcase to use the PEM file and connect with no password.

I am hosting Scriptcase with Scriptcase.host and was wondering if there was some way to get my hosting account to be aware of the SSH key and use it when asked to connect to a certain IP. Then I could deploy correctly.
Perhaps a cpanel/hosting expert could help me out. Is this possible?

Thanks.

Just an update… I found a way to take the bitnami AMI that Lightsail uses and adjust it so it allows for password SSH access. I now have deploy to SFTP working!

I hope this helps someone else one day.

It’s only going to help someone if you posted how you did it…

@nwdbs Since its specific to AWS LightSail I wasn’t sure if this would be the appropriate place to post the solution… but if it helps someone else here goes.

Amazon AWS Lightsail LAMP instance uses Bitnami as the virtual appliance for hosting. If you use it for Scriptcase applications then in order to get it to allow a connection for deployment using the SFTP option in Scriptcase you have to edit your bitnami instance by logging in to it with SSH or through the web based SSH console on the AWS website…

Step 1 Create a new user: https://docs.bitnami.com/general/faq/administration/provide-additional-ssh-access/

Step 2 allow Password logins:

  • Change the SSH server configuration /etc/ssh/sshd_config. Find the PasswordAuthenticationline, edit it and include the other line

… AuthenticationMethods publickey,password PasswordAuthentication yes …

  • Set a password for the bitnami user

sudo passwd bitnami

  • Restart the SSH server service

sudo service ssh restart
Please do not exit the current SSH session, just open a new one and verify that you have access to the instance after applying the changes.