[ jEdit-users ] sftp and public key authentication

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-users ] sftp and public key authentication

maxwell
Does public key authentication work for anyone using the FTP plugin?

I have a private key file on my local machine, and a public key on the
remote machine, which work fine with puTTy.  But I can't make them work
in jEdit with the SFTP connection.

The key is an RSA key (I'm told DSA keys are not secure).  I believe
puTTy expects the public key to be in ~/.SSH2/; is jEdit looking in the
same place?

I'm using jEdit 5.1.0 (yes, I know that's a little old), FTP plugin
version 1.3.2 (which btw works fine with password authentication).  This
is different from the problem remembering the RSA key that I reported
back in Feb, and for which Alan provided a fix.  (For the record, I've
never been able to get public key authentication working in jEdit, and
gave up; I'm returning to it now because I have some spare time.)

In case it's any help, jEdit's activity log records the ff.:
--------------
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:
java.io.IOException: com.jcraft.jsch.JSchException: Auth cancel
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.SFtpConnection.<init>(SFtpConnection.java:154)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.ConnectionManager.getConnection(ConnectionManager.java:528)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.FtpVFS.getConnection(FtpVFS.java:529)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.FtpVFS._canonPath(FtpVFS.java:199)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
org.gjt.sp.jedit.browser.ListDirectoryBrowserTask._run(ListDirectoryBrowserTask.java:73)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
org.gjt.sp.util.Task.run(Task.java:64)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.lang.Thread.run(Thread.java:745)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask: Caused
by: com.jcraft.jsch.JSchException: Auth cancel
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
com.jcraft.jsch.Session.connect(Session.java:511)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.SFtpConnection.<init>(SFtpConnection.java:143)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  ... 8
more
7:30:05 PM [jEdit Worker #1] [error] ErrorListDialog$ErrorEntry:
sftp://[hidden email]:22/~/:
7:30:05 PM [jEdit Worker #1] [error] ErrorListDialog$ErrorEntry: Cannot
list directory: java.io.IOException: com.jcraft.jsch.JSchException: Auth
cancel
-------------

    Mike Maxwell


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-users ] sftp and public key authentication

Alan Ezust-3
Administrator
It works for me.
However, I do know that certain key types do not work in the jsch (the java library of ssh), which do work from ssh.
Is your key really old? Try creating a new key pair with a current version of ssh-keygen and see if that works.



On Fri, Sep 30, 2016 at 4:38 PM, maxwell <[hidden email]> wrote:
Does public key authentication work for anyone using the FTP plugin?

I have a private key file on my local machine, and a public key on the
remote machine, which work fine with puTTy.  But I can't make them work
in jEdit with the SFTP connection.

The key is an RSA key (I'm told DSA keys are not secure).  I believe
puTTy expects the public key to be in ~/.SSH2/; is jEdit looking in the
same place?

I'm using jEdit 5.1.0 (yes, I know that's a little old), FTP plugin
version 1.3.2 (which btw works fine with password authentication).  This
is different from the problem remembering the RSA key that I reported
back in Feb, and for which Alan provided a fix.  (For the record, I've
never been able to get public key authentication working in jEdit, and
gave up; I'm returning to it now because I have some spare time.)

In case it's any help, jEdit's activity log records the ff.:
--------------
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:
java.io.IOException: com.jcraft.jsch.JSchException: Auth cancel
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.SFtpConnection.<init>(SFtpConnection.java:154)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.ConnectionManager.getConnection(ConnectionManager.java:528)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.FtpVFS.getConnection(FtpVFS.java:529)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.FtpVFS._canonPath(FtpVFS.java:199)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
org.gjt.sp.jedit.browser.ListDirectoryBrowserTask._run(ListDirectoryBrowserTask.java:73)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
org.gjt.sp.util.Task.run(Task.java:64)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.lang.Thread.run(Thread.java:745)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask: Caused
by: com.jcraft.jsch.JSchException: Auth cancel
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
com.jcraft.jsch.Session.connect(Session.java:511)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.SFtpConnection.<init>(SFtpConnection.java:143)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  ... 8
more
7:30:05 PM [jEdit Worker #1] [error] ErrorListDialog$ErrorEntry:
sftp://mmaxwell@....umd.edu:22/~/:
7:30:05 PM [jEdit Worker #1] [error] ErrorListDialog$ErrorEntry: Cannot
list directory: java.io.IOException: com.jcraft.jsch.JSchException: Auth
cancel
-------------

    Mike Maxwell


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-users ] sftp and public key authentication

David Busby

And putty uses a specific format for the private side. You have to make a standard format for jEdit. And when connecting you specify which key to use, its not auto selected.


On 30 Sep 2016 9:20 pm, "Alan Ezust" <[hidden email]> wrote:
It works for me.
However, I do know that certain key types do not work in the jsch (the java library of ssh), which do work from ssh.
Is your key really old? Try creating a new key pair with a current version of ssh-keygen and see if that works.



On Fri, Sep 30, 2016 at 4:38 PM, maxwell <[hidden email]> wrote:
Does public key authentication work for anyone using the FTP plugin?

I have a private key file on my local machine, and a public key on the
remote machine, which work fine with puTTy.  But I can't make them work
in jEdit with the SFTP connection.

The key is an RSA key (I'm told DSA keys are not secure).  I believe
puTTy expects the public key to be in ~/.SSH2/; is jEdit looking in the
same place?

I'm using jEdit 5.1.0 (yes, I know that's a little old), FTP plugin
version 1.3.2 (which btw works fine with password authentication).  This
is different from the problem remembering the RSA key that I reported
back in Feb, and for which Alan provided a fix.  (For the record, I've
never been able to get public key authentication working in jEdit, and
gave up; I'm returning to it now because I have some spare time.)

In case it's any help, jEdit's activity log records the ff.:
--------------
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:
java.io.IOException: com.jcraft.jsch.JSchException: Auth cancel
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.SFtpConnection.<init>(SFtpConnection.java:154)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.ConnectionManager.getConnection(ConnectionManager.java:528)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.FtpVFS.getConnection(FtpVFS.java:529)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.FtpVFS._canonPath(FtpVFS.java:199)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
org.gjt.sp.jedit.browser.ListDirectoryBrowserTask._run(ListDirectoryBrowserTask.java:73)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
org.gjt.sp.util.Task.run(Task.java:64)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
java.lang.Thread.run(Thread.java:745)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask: Caused
by: com.jcraft.jsch.JSchException: Auth cancel
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
com.jcraft.jsch.Session.connect(Session.java:511)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  at
ftp.SFtpConnection.<init>(SFtpConnection.java:143)
7:30:05 PM [jEdit Worker #1] [error] ListDirectoryBrowserTask:  ... 8
more
7:30:05 PM [jEdit Worker #1] [error] ErrorListDialog$ErrorEntry:
sftp://mmaxwell@...d.edu:22/~/:
7:30:05 PM [jEdit Worker #1] [error] ErrorListDialog$ErrorEntry: Cannot
list directory: java.io.IOException: com.jcraft.jsch.JSchException: Auth
cancel
-------------

    Mike Maxwell


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-users ] sftp and public key authentication

maxwell
I figured it out.  I believe puTTy looks for the public key in
~/.ssh2/authorization, and that's where I was putting the public key for
jedit.  But in fact jEdit looks for the public key in
~/.ssh/authorization (I'm sure of the latter, because it wasn't working
until I put it there).

Thanks for the advice!

    Mike Maxwell

On 10/1/2016 2:08 AM, David Busby wrote:

> And putty uses a specific format for the private side. You have to make
> a standard format for jEdit. And when connecting you specify which key
> to use, its not auto selected.
>
> On 30 Sep 2016 9:20 pm, "Alan Ezust" <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     It works for me.
>     However, I do know that certain key types do not work in the jsch
>     (the java library of ssh), which do work from ssh.
>     Is your key really old? Try creating a new key pair with a current
>     version of ssh-keygen and see if that works.
>
>     On Fri, Sep 30, 2016 at 4:38 PM, maxwell <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>         Does public key authentication work for anyone using the FTP plugin?
>
>         I have a private key file on my local machine, and a public key
>         on the remote machine, which work fine with puTTy.  But I can't make
>         them work in jEdit with the SFTP connection.
>
>         The key is an RSA key (I'm told DSA keys are not secure).  I believe
>         puTTy expects the public key to be in ~/.SSH2/; is jEdit looking
>         in the same place?
>
>         I'm using jEdit 5.1.0 (yes, I know that's a little old), FTP plugin
>         version 1.3.2 (which btw works fine with password
>         authentication).  This is different from the problem remembering
>         the RSA key that I reported back in Feb, and for which Alan provided
>         a fix.  (For the record, I've never been able to get public key
>         authentication working in jEdit, and
>         gave up; I'm returning to it now because I have some spare time.)
>
<snip>
>              Mike Maxwell

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users
Loading...