Re: sftp and public key authentication
Alan Ezust <[email protected]>
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <CALy5K9r_9TtE-8TsRVitik1aXzv_ZOzcLq_g=L+c1tr01v5qSA@mail.gmail.com> |
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 <[email protected]> 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://[email protected]: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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-users