c# - How to save a sftp server connection in web.config? -


whats best way store sftp server connection credentials in web.config? consists of 4 things:

  • ip
  • user
  • password
  • port

thanks :-)

you can put in <appsettings> section.

for example:

<configuration>     <appsettings>         <add key="sftp ip" value="127.0.0.1" />     </appsettings> </configuration>  string ip = configurationmanager.appsettings["sftp ip"]; 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -