vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

Using .env parameters for describe sftp.conf

Open Tpona opened this issue 4 years ago • 3 comments

Is this a similar or duplicate feature request?

  • [ ] I don't know. I will go check it.
  • [x] No.

Is your feature request related to a problem? Please describe. When you have a developer group with several coders, each of them must describe several parameters for sftp connection (login, password, server path, etc.).

Therefore you can't push sftp config to your git repo. When you have several projects of one type and a lot of dev groups, you should describe instructions on how to create a working sftp configuration.

Describe the solution you'd like It will be a great feature to use the project env file for set login, password, etc. variables.

Describe alternatives you've considered no alternatives =)

Does this project help you?

  • [x] Yes. SFTP IS AWESOME!

Tpona avatar Nov 18 '21 14:11 Tpona

@Tpona,

The easiest way is to add the original sftp.json config file in your .gitignore, create an sftp.json.example config file inside your .vscode folder and remove only the credentials part (keep the host, servername, specific config...). This way you just have to push this file to your git repo and then when a developer clone it he'll just have to make a copy of the sftp.json.example config file, rename it to sftp.json and add the credentials needed (username & password OR username & SSH key).

I know it's not the easiest or most practical way of doing it but it's the way i would recommend you to do it while i'm working on a solution for teams collaboration since you're not the first to ask me something like this.

Natizyskunk avatar Nov 19 '21 15:11 Natizyskunk

@Natizyskunk, thanks for answer and advice! Now we are using a similar solution =) Thanks for your contribution to the development of the project.

Tpona avatar Nov 21 '21 20:11 Tpona

@Tpona,

no problem 😀

Natizyskunk avatar Nov 21 '21 23:11 Natizyskunk