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

trying to use SSH key with SFTP Storage Service #552

Open
mutanthumb opened this issue Aug 4, 2023 · 7 comments
Open

trying to use SSH key with SFTP Storage Service #552

mutanthumb opened this issue Aug 4, 2023 · 7 comments

Comments

@mutanthumb
Copy link

Hi-
I'm trying to use an SSH key to authenticate to an SFTP Storage Service we have on our network. SSH and SFTP work just fine from my Mac terminal, I am able to authenticate to this same server without using an additional username or password. I am not sure how/where to add the Key to DART.

I have created an environmental variable for the location of the Key and entered it is "env:DARTKEY" but DART isn't finding it. Any advice would be greatly appreciated.

Thanks,
susan

@diamondap
Copy link
Member

Try this:

  1. Go to Settings > Storage Services
  2. Click the name of the SFTP server.
  3. Delete the password.
  4. In the "Login Extra" field at the bottom of the screen, enter the full path to your SSH key. For example, "/Users/susan/.ssh/rsa_key"

Then try the connection again and let me know if that works.

@mutanthumb
Copy link
Author

mutanthumb commented Aug 4, 2023

I tried it again, and DART does not like my key:
Job did not complete due to errors.
All configured authentication methods failed
Screenshot 2023-08-04 at 12 40 24 PM
Screenshot 2023-08-04 at 12 43 24 PM

@diamondap
Copy link
Member

Hmm...

I won't be able to work on this for quite some time. Are you ok using password authentication for now?

@mutanthumb
Copy link
Author

Unfortunately (at least in this case) we are setup for 2 factor authentication so it fails with a username and pw. We are not in an immediate crunch at the moment but this would be nice for us to have in the next couple of months. I am happy to test this issue for you in the future.

@diamondap
Copy link
Member

Thanks for your patience and understanding. I'm in the process of rewriting DART to be more maintainable and extensible. I will let you know when I get close to having a fix for this.

@mutanthumb
Copy link
Author

Sounds good, I appreciate it!

@mutanthumb
Copy link
Author

Here are the results from DART console:
Screenshot 2023-08-04 at 2 48 57 PM

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

No branches or pull requests

2 participants