I installed shiny server on an AWS EC2 Ubuntu instance following instruction here: https://www.rstudio.com/products/shiny/download-server/
I tried to transfer a folder to a remote directory: /srv/shiny-server by typing in terminal:
scp -r path/Publickey path/folder ubuntu@ec2-52-15-128-161.us-east-2.compute.amazonaws.com:/srv/shiny-server
Then I got:
Permission denied (publickey).
lost connection
Any help will be appreciated!