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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -