Menu

WinSCP and SFTP

Help
2006-05-07
2013-04-10
  • Nobody/Anonymous

    While logging in to my FreeBSD 6.0 box using ibsh works fine via SSH, when trying to use WinSCP, which uses SFTP, it seems to think no SFTP server is running. Is there a command to allow for this?

    Here is the last part of my WinSCP log:

    . 2006-05-07 12:48:42.603 Access granted
    . 2006-05-07 12:48:42.623 Opened channel for session
    . 2006-05-07 12:48:42.653 Started a shell/command
    . 2006-05-07 12:48:42.673 --------------------------------------------------------------------------
    . 2006-05-07 12:48:42.693 Using SFTP protocol.
    . 2006-05-07 12:48:42.724 Doing startup conversation with host.
    > 2006-05-07 12:48:42.744 Type: SSH_FXP_INIT, Size: 5, Number: -1
    . 2006-05-07 12:48:42.774 Server sent command exit status 0
    . 2006-05-07 12:48:42.794 All channels closed. Disconnecting
    . 2006-05-07 12:48:42.824 Server closed network connection
    * 2006-05-07 12:48:42.854 (ESshFatal) Cannot initialize SFTP protocol. Is the host running a SFTP server?
    * 2006-05-07 12:48:42.854 Connection has been unexpectedly closed. Server sent command exit status 0.

     
    • Nobody/Anonymous

      I think you should allow `scp' in global.cmds for scp o work for the client.

       
    • Nobody/Anonymous

      No, I tried that already as well as everything else I could think of, here are my global.cmds:

      cd
      ls
      pwd
      logout
      exit
      touch
      mkdir
      rm
      pico
      scp
      sftp
      sftp-server
      ssh
      sshd

       
    • Nobody/Anonymous

      try to tail /var/log/messages while you're working with WinSCP.

       
    • Nobody/Anonymous

      I get nothing in /var/log/messages, auth.log or debug.log pertaining to my attempt to login. So, I put sshd in debug mode and watched while connecting, this is all I see...

      <snip>
      subsystem request for sftp
      debug1: sybsystem: exec() /usr/libexec/sftp-server
      debug1: Received SIGCHLD.
      debug1: session_by_pid: pid 23011
      debug1: session_exit_message: session 0 channel 0 pid 23011
      debug1: session_exit_message: release channel 0
      debug1: session_close: session 0 pid 23011
      <snip>

       
    • Nobody/Anonymous

      Hello,

      I am using ibsh into vservers and my remote clients couldn't transfer file with scp.
      With other unrestricted shells the scp works fine.

      I didn't find any workaround about this problem.

      Does anyone find out a solution ?

       
      • Nobody/Anonymous

        I got it to work with scp in the globals.cmds

         
    • Nobody/Anonymous

      I'm also having this problem.  When running the ibsh, I can no longer connect to that acount with an SFTP connection.  What else do I need to add to the global.cmds file?

      -James

       
    • Nobody/Anonymous

      any help with sftp issue please?
      I 'm getting  "Connection closed" for user with /bin/ibsh

       
    • Nobody/Anonymous

      Was there a fix for this? Specifically, using sftp clients failing (WinSCP/Filezilla-sftp, etc)?

       
    • Nobody/Anonymous

      I have the same problem.. using ibsh i can not connect with my ssh server thru the sftp service.
      Does anybody have a solution?
      Thanks
      Javier Jara

       
      • Richard H. McCullough

        Sorry - tried to respond yesterday & got on ibsh thread instead. To summarize:
        1. have to put your command in list & copy command into directory.
        2. I encountered ibsh bug in processing path. I was only able to identify bug by recompiling ibsh with some diagnostic printout.

         
  • William Peckham

    William Peckham - 2010-11-11

    This subject is stale, but I have an addition: the newer versions of openssh allow you to specify the internal sftp server rather than the external executable.  This resolves this issue nicely without requiring any modification to the ibsh configuration. 

     

Log in to post a comment.