teambition / gulp-ssh

SSH and SFTP tasks for gulp
184 stars 38 forks source link

Add useAgent option to auto-detect running SSH agent #90

Closed mojavelinux closed 6 years ago

mojavelinux commented 6 years ago

Rather than making the user specific the agent socket explicitly, add an option named useAgent that tells the SSH client to auto-detect the running SSH agent and use it.

In short, useAgent: true is shorthand for agent: process.env.SSH_AUTH_SOCK. But it also means we can support other ways of detecting the running agent in the future.