Coldfusion 9 CFFTP Tag
Hi, hope somebody can help!
I'm running an evaluation on the new Coldfusion 9 and trying to use the <CFFTP> tag to connect to a remote SFTP server. The server version is:-
SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
My Code is:-
<cfftp action = "open"
username = "myusername"
connection = "MyConnection"
password = "mypassword"
server = "myserver.com"
secure = "yes">
<p>Successful: <cfoutput>#cfftp.succeeded#</cfoutput>
<cfdump var ="#MyConnection#" label="connection">
This is what is returned:-
An error occurred while establishing an sFTP connection. | |||||||||
| Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: Session.connect: java.io.IOException: invalid data. | |||||||||
| The error occurred in /Applications/ColdFusion9/wwwroot/test/sftp.cfm: line 12 | |||||||||
10 : 11 : server = "10.1.3.43" 12 : secure = "yes"> 13 : 14 : <p>Successful: <cfoutput>#cfftp.succeeded#</cfoutput> | |||||||||
Resources:
| |||||||||
| |||||||||
| Stack Trace |
at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:12) at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:12) com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: invalid data at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at coldfusion.tagext.net.SftpHandler.getConnection(SftpHandler.java:265) at coldfusion.tagext.net.SftpHandler.createConnection(SftpHandler.java:76) at coldfusion.tagext.net.FtpTag.doStartTag(FtpTag.java:675) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:12) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) |
I've tried running this from both a Mac and Windows platform.
Incidentally, I also took the example from the Adobe Coldfusion 9 live docs and got the same error.
If I can't get this to work then it's a show stopper for the use of CF within our environment.
Best Regards,
Carl Bourne
Message was edited by: CarlB Just tried using the above to connect to a SSH (SSH-2.0-OpenSSH_5.2) server running on MAC OSX. I got the same error.
