Nov 26, 2010

SFTP withing jedit doesn't work to login in to SLES10 x 64

I've a SLES10 x64, to which I'd like to connect with the SFTP Plugin in
jEdit to view remote files.

But the login fails with the following trace:
10:18:56 [jEdit I/O #2] [message] SftpLogger: Connection established                                                                                           
10:18:56 [jEdit I/O #2] [message] SftpLogger: Remote version string: SSH-1.99-OpenSSH_4.2
10:18:56 [jEdit I/O #2] [message] SftpLogger: Local version string: SSH-2.0-JSCH-0.1.42
10:18:56 [jEdit I/O #2] [message] SftpLogger: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
10:18:56 [jEdit I/O #2] [message] SftpLogger: aes256-ctr is not available.             
10:18:56 [jEdit I/O #2] [message] SftpLogger: aes192-ctr is not available.             
10:18:56 [jEdit I/O #2] [message] SftpLogger: aes256-cbc is not available.             
10:18:56 [jEdit I/O #2] [message] SftpLogger: aes192-cbc is not available.             
10:18:56 [jEdit I/O #2] [message] SftpLogger: arcfour256 is not available.             
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_KEXINIT sent                     
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_KEXINIT received                 
10:18:56 [jEdit I/O #2] [message] SftpLogger: kex: server->client aes128-ctr hmac-md5 none
10:18:56 [jEdit I/O #2] [message] SftpLogger: kex: client->server aes128-ctr hmac-md5 none
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_KEXDH_INIT sent                  
10:18:56 [jEdit I/O #2] [message] SftpLogger: expecting SSH_MSG_KEXDH_REPLY            
10:18:56 [jEdit I/O #2] [message] SftpLogger: ssh_rsa_verify: signature true           
10:18:56 [jEdit I/O #2] [message] SftpLogger: Host 'xxxxxxx' is known and mathces the RSA host key
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_NEWKEYS sent                     
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_NEWKEYS received                 
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_SERVICE_REQUEST sent             
10:18:56 [jEdit I/O #2] [message] SftpLogger: SSH_MSG_SERVICE_ACCEPT received          
10:18:56 [jEdit I/O #2] [message] SftpLogger: Authentications that can continue: publickey,keyboard-interactive,password
10:18:56 [jEdit I/O #2] [message] SftpLogger: Next authentication method: publickey    
10:18:56 [jEdit I/O #2] [message] SftpLogger: Authentications that can continue: keyboard-interactive,password
10:18:56 [jEdit I/O #2] [message] SftpLogger: Next authentication method: keyboard-interactive    
10:18:56 [jEdit I/O #2] [message] SftpLogger: Disconnecting from sles10x64 port 22     
10:18:56 [jEdit I/O #2] [error] BrowserIORequest: java.io.IOException: com.jcraft.jsch.JSchException: Auth fail
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at ftp.SFtpConnection.(SFtpConnection.java:105)    
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at ftp.ConnectionManager.getConnection(ConnectionManager.java:320)
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at ftp.FtpVFS.getConnection(FtpVFS.java:451)   
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at ftp.FtpVFS._listFiles(FtpVFS.java:218)  
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at org.gjt.sp.jedit.browser.BrowserIORequest.listDirectory(BrowserIORequest.java:159)
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at org.gjt.sp.jedit.browser.BrowserIORequest.run(BrowserIORequest.java:90)         
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:213)    
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:180)
10:18:56 [jEdit I/O #2] [error] BrowserIORequest:  at org.gjt.sp.util.WorkThread.run(WorkThread.java:154)   
10:18:56 [jEdit I/O #2] [error] ErrorListDialog$ErrorEntry: sftp://vswfl@sles10x64:22/:
10:18:56 [jEdit I/O #2] [error] ErrorListDialog$ErrorEntry: Cannot list directory: java.io.IOException: com.jcraft.jsch.JSchException: Auth fail

The solution was to modify the sshd_config in /etc/ssh on the sles10 server:
and replaced:
PasswordAuthentication no 
with
PasswordAuthentication yes

 After this change the SFTP-login and file system browsing in jEdit worked.