VSChina / vscode-ansible

VSCode extension for ansible
Other
76 stars 48 forks source link

Use OpenSSH in backend / SSH Agent Support #278

Open Awbmilne opened 3 years ago

Awbmilne commented 3 years ago

Environment

Summary

This extension seems to require an actual private key to be present. This means that using an agent for key management is not supported. Couldnt the extension just utilize OpenSSH of OS to make the connection? This would eliminate the need for a custom servers.json file.

The ~/.ssh/config file already has the options available and is well established. It great for users of SSH for servers they interact with. This would also allow OpenSSH to handle key and password gathering. So I could use my Yubikey and GPG-agent for the SSH authentication

(Refer to benpye/wsl-ssh-pageant for gpg-agent integration with Windows OpenSSH, refer to drduh/YubiKey-Guide for Yubikey GPG guide)

Reproduce steps

Try using with agent

Expected Results

It uses standard SSH to connect and run commands (maybe using Agent-Forward if needed)

Actual Results

It asks for path to a private key (Which doesnt exist on my computer, for security reasones). I am sad because it I have hit a road-block.

Gr4cchus commented 3 years ago

Is this still unresolved? Also having issues figuring out how to use the yubikey with this extension. For the ssh fs extension theres an option in the configuration to specify the environment variable that solves the problem of providing a key. image

Awbmilne commented 3 years ago

It seems this extension has been retired... :cry:

282