If you add in a ssh key, digital ocean will change all of the
PasswordAuthentication yes
to PasswordAuthentication no
. To enable sftp
ssh into the server edit the last PasswordAuthentication no
to
PasswordAuthentication yes
in the file /etc/ssh/sshd_config
, restart
systemctl restart sshd
and the created sftp user account can log in.
dotnet core is using a reverse proxy to port 80, phppgadmin is set up on port 81
PhpPgAdmin url will be located at <IP.AD.DR.ESS>:81/phppgadmin/
- ubuntu 16.04
- dotnet core
- sftp
- postgres
- phppgadmin
- apache2
Create the file secrets.json, update the following content
{
"secret_api_token":"123456789abc",
"image_region": "nyc3",
"sftp_username": "sftp_user",
"sftp_password": "change_me_123",
"sftp_user_root_login_dir": "/",
"db_name": "aspnetcore",
"db_username": "aspnetcore",
"db_password": "change_me_123",
"dotnet_install_package": "dotnet-sdk-2.0.3"
}
packer-io build -var-file=secrets.json do-asp-netcore-pg-admin-sftp.json