"The server refused to open a session" at openSftpClient()

"László Roland" <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
Hi,

I opened an ssh connection to my SSHDaemon from my SSHClient, but when I
call the
sshConnection.openSftpClient() I get the following exception on my client:

com.sshtools.j2ssh.SshException: The server refused to open a session
at com.sshtools.j2ssh.SshClient.openSessionChannel(Unknown Source)
at com.sshtools.j2ssh.SshClient.openSftpChannel(Unknown Source)
at com.sshtools.j2ssh.SftpClient.<init>(Unknown Source)
at com.sshtools.j2ssh.SshClient.openSftpClient(Unknown Source)
at com.sshtools.j2ssh.SshClient.openSftpClient(Unknown Source)
at
systemDiagramEditor.comm.PasswordConnect.getSFTPConnection(PasswordConnect.java:155)
at
systemDiagramEditor.views.DiagramTransferView.onDownload(DiagramTransferView.java:261)
at
systemDiagramEditor.views.DiagramTransferView$3.widgetSelected(DiagramTransferView.java:249)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)


The server throws these lines at the same time:

2006.04.19. 8:43:48 com.sshtools.j2ssh.connection.ConnectionProtocol
onMsgChannelOpen
INFO: Request for session channel recieved
2006.04.19. 8:43:48 com.sshtools.j2ssh.connection.ConnectionProtocol
onMsgChannelOpen
INFO: Request for channel type session refused

Is this a configuration problem? Has anybody get the same problem?

Thanks for the replies:
Roland Laszlo


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.