-1

My App service needs to communicate over openSSH without password. I have a Linux App Service plan tier B1 hosted on Azure. If I type "ssh-keygen" it creates a .ssh folder in a root and id_rsa and id_rsa.pub in this folder without a problem. So I copy the .pub key to a remote server and paswordless ssh connection works nicely. BUT after I stop and restart App service, this .ssh folder is gone and I need to repeat this process again. Is there any workaround? Thanks.

Lopuch
  • 664
  • 2
  • 5
  • 20

1 Answers1

2

The Web App for Container will lose the data when you restart it. You can take a look at the persistent storage, this will persist the data where you need when you restart the web app. And mount Azure Storage is also a choice. You can select one from the two ways.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39