org.jclouds.ssh.SshException: ec2-user@xx.xx.xx.xx: Error connecting to session.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x

Solutions on the web

via incubator-whirr-user by Paul Baclace, 1 year ago
ubuntu@50.x.y.z:22: Error connecting to session.
via incubator-whirr-user by Andrei Savu, 1 year ago
ubuntu@50.x.y.z:22: Error connecting to > session.
via Google Groups by Oleg Aravin, 7 months ago
error acquiring ChannelExec(): channel is not > opened.
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:461)
at com.jcraft.jsch.Session.connect(Session.java:154)
at org.jclouds.ssh.jsch.JschSshClient.newSession(JschSshClient.java:246)
at org.jclouds.ssh.jsch.JschSshClient.connect(JschSshClient.java:185)

Users with the same issue

2 times, 1 month ago
10 times, 11 months ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.