Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate allowing SFTP to use an SSH key #20

Open
Lansatac opened this issue Sep 23, 2016 · 1 comment
Open

Investigate allowing SFTP to use an SSH key #20

Lansatac opened this issue Sep 23, 2016 · 1 comment
Milestone

Comments

@Lansatac
Copy link
Collaborator

It would be nice to operate on servers that are configured to not use username authentication.

@Lansatac Lansatac modified the milestone: 1.2.0 Dec 30, 2016
@Lansatac Lansatac modified the milestones: 1.4.0, 1.2.0 Jan 15, 2017
@chapinb
Copy link
Collaborator

chapinb commented Aug 17, 2021

This is possible using the same SFTP client that we have, as noted here:

https://csharp.hotexamples.com/examples/Renci.SshNet/SftpClient/-/php-sftpclient-class-examples.html#0xfd2128cea7c5fb03421cea900fed6312fc4b8f6c77cf4bdb620fa253ae2c400c-33,,39,

We could modify this section to use a similar conditional to check for a key then default to a password here:

private static SftpClient CreateSftpClient(Arguments arguments)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants