Comments (10)
I have the same problem. It was my mistake. I forget to put a "\n" at the end of each line, in my key string.
from jcabi-ssh.
@yegor256 please do something about this issue
from jcabi-ssh.
@lordofthejars looks correct to me. what exactly do you see? can you post stacktrace here?
from jcabi-ssh.
Sorry for being a bit late, JavaOne thing hehehe:
java.io.IOException: com.jcraft.jsch.JSchException: invalid privatekey: [B@24a1c17f
at com.jcabi.ssh.SSH.session(SSH.java:279)
at com.jcabi.ssh.SSH.exec(SSH.java:219)
at com.jcabi.ssh.Shell$Plain.exec(Shell.java:172)
Caused by: com.jcraft.jsch.JSchException: invalid privatekey: [B@24a1c17f
at com.jcraft.jsch.KeyPair.load(KeyPair.java:902)
at com.jcraft.jsch.KeyPair.load(KeyPair.java:543)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:393)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:353)
at com.jcabi.ssh.SSH.session(SSH.java:261)
from jcabi-ssh.
Any idea? Maybe I need to install something?
from jcabi-ssh.
Any news on this ? I got the same error but I know the key is valid, since I use it almost everyday
from jcabi-ssh.
No answer, I tried everything but didn't work and I decided to give up.
from jcabi-ssh.
Disappointed to hear this but thanks for the info !
from jcabi-ssh.
If it may interest others, I was able to fix my problem. It turns out that my private key need a passphrase. By switching to 2.0-snapshot, and using the new constructor (#50) I was able to make it work.
from jcabi-ssh.
I have the same problem. It was my mistake. I forget to put a "\n" at the end of each line, in my key string.
Same with me, I had to edit my private key file (.ppk) to replace the \r with an \n, at the end of each line. I did this easily in Notepad++ with Find/Replace, Extended search mode, find "\r" and replace with "\n".
from jcabi-ssh.
Related Issues (20)
- jcabi-aspects does not work
- update jsch HOT 2
- Dependency Dashboard
- Tarea_refactoring
- Tarea Refactoring1
- going through a jump server
- Turn off logging ?? HOT 5
- Logs has the risk of exposing sensitive information HOT 2
- Any chance to deploy it with jlink? HOT 2
- class SSH.session create too many temp file HOT 6
- Upgrade the cactoos dependency to the latest version as they are incompatible now HOT 2
- How to get it working on Java 11? HOT 5
- How to send several commands one after the other HOT 4
- springboot HOT 1
- fresh release HOT 3
- Ssh doesn't disconnect after the process goes to background HOT 12
- extra config for JSch session HOT 3
- com.jcraft.jsch.JSchException: socket is not established HOT 16
- Replace JSCH implementation HOT 5
- scp capabilities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jcabi-ssh.