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

None of the configured keyfiles exists: ~/.ssh/id_rsa, ~/.ssh/id_dsa #31

Open
tekumara opened this issue Sep 2, 2015 · 2 comments
Open

Comments

@tekumara
Copy link

tekumara commented Sep 2, 2015

Default key locations specified in SshLogin.scala are ~/.ssh/id_rsa, ~/.ssh/id_dsa but the tilde is a shell specific expansion and not applied, resulting in the following exception when using the default key locations:

java.lang.RuntimeException: None of the configured keyfiles exists: ~/.ssh/id_rsa, ~/.ssh/id_dsa 

Replacing the tilde with System.getProperty("user.home") would be better.

@sirthias
Copy link
Owner

sirthias commented Sep 2, 2015

@LPTK
Copy link

LPTK commented Mar 27, 2018

If anyone is having this error, for me it was because these files under macOS were encrypted. I had to use the AgentLogin instead (which depends on jsch.agentproxy.sshj and jsch.agentproxy.connector-factory). Then it worked well.

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

3 participants