1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

sh: /opt/libexec/sftp-server: not found

Discussion in 'Tomato Firmware' started by tomatoetomato, Mar 26, 2011.

  1. tomatoetomato

    tomatoetomato Networkin' Nut Member

    Ran accross winscp to run ssh client to your router.
    I have Tomato v1.28.9054 MIPSR2-beta K26 USB vpn3.6
    Can't seem to connect no matter what combination of settings I use in winscp.
    However I have no problem connecting with Putty then running the ftp client.

    Found this in the log:
    sh: /opt/libexec/sftp-server: not found

    It is currently running vsftpd if I turn on the integrated ftp server.
    Read somewhere that I need to install sftp-server.
    Of course it doesn't make sense to run both when I only need one.
    I understand that port 21 is already open without it showing in portforwarding
    when I have the integrated ftp server of tomato on. I'd rather not have that port open and connect with an sftp client or equivalent for security.

    Is it ok to install sftp-server while vsftpd is installed?
    Will it affect my ssh certificate that I've
    setup using this tutorial from tomatousb:

  2. rhester72

    rhester72 Network Guru Member

    SFTP != FTP. They have nothing to do with each other - no shared ports, no shared protocols, no shared software (client or server).

  3. bkmo

    bkmo LI Guru Member

    You need to install the optware package "openssh-sftp-server"
  4. tomatoetomato

    tomatoetomato Networkin' Nut Member


    OK thanks. Will try it out.
  5. tomatoetomato

    tomatoetomato Networkin' Nut Member

    Was able to install sftp-server and connect to it with
    Filezilla and CoreFTP clients using root and root's password(read somewhere that this works so I tried it).
    So I turned off the built in vsftpd and was still able to connect
    with the sftp clients both WAN and LAN.

    Filezilla shows connected only with Diffie-Helman SHA-1 when you doubleclick
    on the lock icon on the bottom of the window.

    With CoreFTP I went to Manage>SSL/SSH certs>Accepted SSH keys>
    clicked on my key>manage>click on Root_Trusted Roots.
    It showed mine as RSA(512) while the rest of them ie., verisign, are 1024, 2048, etc.

    I also noticed that when I type PS, dropbear shows on the list but when I sftp to the router, this also shows up:
    1162 root 1704 S sh -c /opt/libexec/sftp-server
    1163 root 2856 S /opt/libexec/sftp-server

    I read that you can generate keys on dropbear which is an SSH2 server.
    Can I generate this key and use it in some way in the hopes of getting
    an SHA-2 connection? I know SHA-1 is encrypted a little but just
    don't feel comfortable connecting with root's password.


Share This Page