<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 22: Reverse SSH on android - Auth credentials?</title><link>https://sourceforge.net/p/jsch/support-requests/22/</link><description>Recent changes to 22: Reverse SSH on android - Auth credentials?</description><atom:link href="https://sourceforge.net/p/jsch/support-requests/22/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 10 Jun 2015 19:59:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jsch/support-requests/22/feed.rss" rel="self" type="application/rss+xml"/><item><title>Reverse SSH on android - Auth credentials?</title><link>https://sourceforge.net/p/jsch/support-requests/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I could set a reverse SSH connection and I've also added an identity using addIdentity(String, byte[] privatekey, byte[] publickey, byte[] passphrase);&lt;/p&gt;
&lt;p&gt;However, even adding the public key using this method I could not login using the corresponding private key to the Android device because it cannot find the public key.&lt;/p&gt;
&lt;p&gt;The device is not rooted, and here are the SSH debug messages:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;% ssh -vvv -p 4545 -i /home/local_username/.ssh/identity_key jsch_username@localhost&lt;br /&gt;
OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 2015&lt;br /&gt;
debug1: Reading configuration data /home/local_username/.ssh/config&lt;br /&gt;
debug1: /home/local_username/.ssh/config line 1: Applying options for &lt;em&gt;&lt;br /&gt;
debug1: Reading configuration data /etc/ssh/ssh_config&lt;br /&gt;
debug1: /etc/ssh/ssh_config line 19: Applying options for &lt;/em&gt;&lt;br /&gt;
debug2: ssh_connect: needpriv 0&lt;br /&gt;
debug1: Connecting to localhost &lt;span&gt;[127.0.0.1]&lt;/span&gt; port 4545.&lt;br /&gt;
debug1: Connection established.&lt;br /&gt;
debug1: identity file /home/local_username/.ssh/identity_key type 1&lt;br /&gt;
debug1: key_load_public: No such file or directory&lt;br /&gt;
debug1: identity file /home/local_username/.ssh/identity_key-cert type -1&lt;br /&gt;
debug1: Enabling compatibility mode for protocol 2.0&lt;br /&gt;
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-5&lt;br /&gt;
ssh_exchange_identification: Connection closed by remote host&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The relevant lines seems to be:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;debug1: identity file /home/local_username/.ssh/identity_key type 1&lt;br /&gt;
debug1: key_load_public: No such file or directory&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I do not have this folder set at the Android device as it is not rooted. Also I'd expect jsch to use the public key provided with addIdentitiy() method.&lt;/p&gt;
&lt;p&gt;What I'm doing wrong?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nsj</dc:creator><pubDate>Wed, 10 Jun 2015 19:59:06 -0000</pubDate><guid>https://sourceforge.net98ae2d63b4d71e2331321016d78b65a0eb5c946a</guid></item></channel></rss>