[scponly] sftp not working, but scp does

Paul Hyder Paul.Hyder at noaa.gov
Tue Nov 28 12:16:18 EST 2006


Sounds like the selected sftp server exits.

Have you tried setting the debuglevel to 1?  (default install puts this
file in /usr/local/etc/scponly, change it from 0 to 1)  The extended
diagnostics should be useful.

Would also help to know what options you used with configure and the
server's operating system.
   Paul Hyder
   NOAA Earth System Research Laboratory, Global Systems Division
   Boulder, CO


Brian Davis wrote:
> Hi,
> 
> I'm using WinSCP 3.8.2. The session default of "SFTP (allow SCP 
> fallback) is checked.  When WinSCP tries to connect, if gives the 
> following error and immediately disconnects:
> 
> "Cannot initalize SFTP protocol. Is the host running a SFTP server?
> Connection has been unexpectedly closed. Server sent command exit status 
> 255."
> 
> However, selecting SCP for the session seems to work fine.  Here is my 
> auth.log when trying sftp:
> 
> Nov 26 22:14:41 flagg sshd[20279]: Accepted keyboard-interactive/pam for 
> test from 192.168.1.103 port 3530 ssh2
> Nov 26 22:14:41 flagg sshd(pam_unix)[13368]: session opened for user 
> test by (uid=0)
> Nov 26 22:14:41 flagg sshd[13368]: subsystem request for sftp
> Nov 27 03:14:41 flagg scponly[12982]: running: /usr/lib/misc/sftp-server 
> (username: test(1003), IP/port: 192.168.1.103 3530 7777)
> Nov 26 22:14:41 flagg sshd(pam_unix)[13368]: session closed for user test
> 
> Any ideas?
> 
> Also, can the logging for scponly be configured to use local time rather 
> than GMT?
> 
> Thanks!
> 
> 
> 
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly




More information about the scponly mailing list