Re: Disable SFTP/SCP but not SSH?

From: David Redmond (dave_at_allydavesyd.com)
Date: 07/07/04

  • Next message: Ian Rogers: "concurrent sftp"
    Date: Wed, 7 Jul 2004 13:39:12 -0700
    To: secureshell@securityfocus.com
    
    

    Are you trying to disable file transfer by not allowing SFTP and SCP?
    If so, it won't work. It is possible to copy files using only ssh. Try
    the commands below.

            cat LOCALFILE | ssh REMOTEHOST cat \>REMOTEFILE
            ssh REMOTEHOST cat REMOTEFILE >LOCALFILE

    The files are transfered using only ssh and fancy schmancy redirection.

    Dave
    ~""~

    On Jul 7, 2004, at 9:42 AM, Real Cucumber wrote:

    > Using Fedora Core 2 and OpenSSH 3.6.1p2, I'm wondering
    > if it is possible to allow users to connect via SSH,
    > but prevent them from connecting through SFTP and/or
    > SCP?
    >
    >
    >
    >
    > __________________________________
    > Do you Yahoo!?
    > Yahoo! Mail Address AutoComplete - You start. We finish.
    > http://promotions.yahoo.com/new_mail
    >


  • Next message: Ian Rogers: "concurrent sftp"

    Relevant Pages

    • Re: what does ssh(1) mean?
      ... it means "read about this use of the term 'ssh' by executing ... scp and sftp provide the same security; ... key pairs and have no local password storage on the server whatsoever, ...
      (comp.security.ssh)
    • Re: FTP Encryption
      ... SSH as a transport in different ways, ... OpenSSH's sftp certainly doesn't use scp in any way. ... operating systems system files. ...
      (comp.security.ssh)
    • Re: Linux FTP Security
      ... Use SSH and scp, sftp ext... ... Allowing root to login to the ftp server is ...
      (comp.os.linux.security)
    • Re: Does OpenSSH use RCP?
      ... > with someone about the difference between OpenSSH and SFTP. ... > SFTP) than SCP will fail. ... OpenSSH uses an implementation that is compatible to the original SSH ...
      (comp.security.unix)
    • Re: Distinguishing ssh-logins from sftp-logins
      ... I've got a case concerning sftp and ssh. ... With unix/linux sshd servers, when you connect with scp it effectivley connects with ssh and runs the servers scp command. ...
      (comp.security.ssh)