{"action":"created","issue":{"url":"https://api.github.com/repos/jcabi/jcabi-ssh/issues/40","labels_url":"https://api.github.com/repos/jcabi/jcabi-ssh/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/jcabi/jcabi-ssh/issues/40/comments","events_url":"https://api.github.com/repos/jcabi/jcabi-ssh/issues/40/events","html_url":"https://github.com/jcabi/jcabi-ssh/issues/40","id":124483110,"number":40,"title":"Unable to SSHByPassword using the given code","user":{"login":"HackerDM","id":9623839,"avatar_url":"https://avatars.githubusercontent.com/u/9623839?v=3","gravatar_id":"","url":"https://api.github.com/users/HackerDM","html_url":"https://github.com/HackerDM","followers_url":"https://api.github.com/users/HackerDM/followers","following_url":"https://api.github.com/users/HackerDM/following{/other_user}","gists_url":"https://api.github.com/users/HackerDM/gists{/gist_id}","starred_url":"https://api.github.com/users/HackerDM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackerDM/subscriptions","organizations_url":"https://api.github.com/users/HackerDM/orgs","repos_url":"https://api.github.com/users/HackerDM/repos","events_url":"https://api.github.com/users/HackerDM/events{/privacy}","received_events_url":"https://api.github.com/users/HackerDM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-31T16:11:28Z","updated_at":"2016-01-04T08:31:56Z","closed_at":null,"body":"Hi\r\nI have been trying to get this code working for the past 5-6 hrs but I have had no success so far. Kindly help me resolve this issue. I am working on eclipse and I want to ssh into my raspberry pi using SSHByPassword. I downloaded the jcabi-ssh-1.5-jar-with-depencies.jar. Running my code with this gives me the error :\r\n\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\nException in thread \"main\" java.io.IOException: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out\r\nat com.jcabi.ssh.SSHByPassword.session(SSHByPassword.java:147)\r\nat com.jcabi.ssh.SSHByPassword.exec(SSHByPassword.java:108)\r\nat com.jcabi.ssh.Shell$Plain.exec(Shell.java:172)\r\nat Hope.main(Hope.java:10)\r\nCaused by: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out\r\nat com.jcraft.jsch.Session.connect(Session.java:558)\r\nat com.jcraft.jsch.Session.connect(Session.java:183)\r\nat com.jcabi.ssh.SSHByPassword.session(SSHByPassword.java:144)\r\n... 3 more\r\n\r\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n-> Next I added slf4j-nop-1.7.13.jar to my project reference library. I get the following error now: \r\n\r\nException in thread \"main\" java.io.IOException: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out\r\nat com.jcabi.ssh.SSHByPassword.session(SSHByPassword.java:147)\r\nat com.jcabi.ssh.SSHByPassword.exec(SSHByPassword.java:108)\r\nat com.jcabi.ssh.Shell$Plain.exec(Shell.java:172)\r\nat Hope.main(Hope.java:10)\r\nCaused by: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out\r\nat com.jcraft.jsch.Session.connect(Session.java:558)\r\nat com.jcraft.jsch.Session.connect(Session.java:183)\r\nat com.jcabi.ssh.SSHByPassword.session(SSHByPassword.java:144)\r\n... 3 more\r\n\r\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n\r\nMy code is as follows:\r\n\r\nimport com.jcabi.ssh.Shell;\r\nimport java.io.IOException;\r\nimport java.net.UnknownHostException;\r\nimport com.jcabi.ssh.SSHByPassword;\r\nimport com.jcabi.log.*;\r\n\r\npublic class Try {\r\n   public static void main(String[] args) throws IOException{\r\n        Shell shell = new SSHByPassword(\"192.168.1.2\", 22, \"pi\", \"abc\");\r\n        String stdout = new Shell.Plain(shell).exec(\"echo 'Hello, world!'\");\r\n      }\r\n}"},"comment":{"url":"https://api.github.com/repos/jcabi/jcabi-ssh/issues/comments/168610044","html_url":"https://github.com/jcabi/jcabi-ssh/issues/40#issuecomment-168610044","issue_url":"https://api.github.com/repos/jcabi/jcabi-ssh/issues/40","id":168610044,"user":{"login":"dmarkov","id":5993843,"avatar_url":"https://avatars.githubusercontent.com/u/5993843?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarkov","html_url":"https://github.com/dmarkov","followers_url":"https://api.github.com/users/dmarkov/followers","following_url":"https://api.github.com/users/dmarkov/following{/other_user}","gists_url":"https://api.github.com/users/dmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarkov/subscriptions","organizations_url":"https://api.github.com/users/dmarkov/orgs","repos_url":"https://api.github.com/users/dmarkov/repos","events_url":"https://api.github.com/users/dmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/dmarkov/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T08:31:56Z","updated_at":"2016-01-04T08:31:56Z","body":"@yegor256 please take a look at it and dispatch (see [par.21](http://at.teamed.io/policy.html#21))"}}