SFTP server?

Discussion in 'OT Technology' started by trouphaz, Mar 2, 2009.

  1. trouphaz

    trouphaz New Member

    Joined:
    Sep 22, 2003
    Messages:
    2,666
    Likes Received:
    0
    I have some Solaris servers that I'd like to use for SFTP on the internet instead of FTP. Is it possible to configure OpenSSH so that it only accepts sftp traffic and not ssh?
     
  2. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,439
    Likes Received:
    11
    disable their shell?

    the only way we do it is to set their shell to /no/login.

    seems like the newer way is to use a sftp-server shell.
    [email protected] # echo '/usr/lib/stfp-server' >> /etc/shells
    [email protected] # usermod -s /usr/lib/sftp-server username
     
  3. trouphaz

    trouphaz New Member

    Joined:
    Sep 22, 2003
    Messages:
    2,666
    Likes Received:
    0
    yeah, that works on a per user basis, but i don't even want ssh to be available at all. i'm looking to see if there is a way to build OpenSSH with a different port and only supporting sftp. that way, i can keep the default Solaris sshd working for internal support requirements and then allow the customized sshd out through the firewall.
     

Share This Page