Re: SFTP using a single use key.

From: Per Hedeland (per_at_hedeland.org)
Date: 08/30/04

  • Next message: all mail refused: "Re: Broken pipe with scp and big file"
    Date: Mon, 30 Aug 2004 20:26:22 +0000 (UTC)
    
    

    In article <m2oeksr822.fsf@darwin.oankali.net> Richard E. Silverman
    <res@qoxp.net> writes:
    >
    >> But putting the following in the command in the key doesn't work:
    >>
    >> /usr/local/bin/ssh2 -l account -v -x -a -o "clearallforwardings yes" -o
    >> "passwordprompt %U@%H's password:" -o "nodelay yes" -o
    >> "authenticationnotify yes" destination.system.edu -s sftp
    >
    >This command is run on the *client*, in a subprocess by scp2, to contact
    >the remote side and start sftp-server. You took it and put it as the
    >command to execute on the *server*. All you want to run on the server is
    >the "sftp-server" program. However, you will not be able to accomplish
    >what you want: unlike scp, the file to transfer is not given on the
    >command line, and there is no option you can give sftp-server to restrict
    >it in this way.

    However, assuming the "subsystem" invocation is subject to the command=
    semantics (is it?), I guess it should work to point command= at a
    wrapper that fired up sftp-server (probably checking that this is
    actually the attempted command first:-), and acted as a proxy for the
    SFTP protocol, inspecting the commands received and rejecting anything
    "improper". A bit more work than putting a fixed string in the key file
    though...

    --Per Hedeland
    per@hedeland.org


  • Next message: all mail refused: "Re: Broken pipe with scp and big file"

    Relevant Pages

    • Re: SFTP using a single use key.
      ... This command is run on the *client*, in a subprocess by scp2, to contact ... the remote side and start sftp-server. ... All you want to run on the server is ...
      (comp.security.ssh)
    • Re: public-key ssh out of VMS 7.3-1
      ... it's HP TCP/IP Services for OpenVMS Alpha Version 5.4 - ECO 6. ... command could reveal something, such as which key file you're actually ...
      (comp.os.vms)
    • Re: Strong naming and COM interop
      ... create a key file with the sn.exe utility. ... your interop assembly with the key file provided in command line arguments. ... Dmitriy Lapshin [C# / .NET MVP] ... > How do I create a strongly named interop. ...
      (microsoft.public.dotnet.security)
    • Re: strange issues with yum update
      ... den 07.08.2004 schrieb Globe Trotter um 19:52: ... > This is the complete command? ... As Thierry already answered you need to pass it the key file. ... Fedora GNU/Linux Core 2 kernel 2.6.7-1.494.2.2smp ...
      (Fedora)
    • Re: How to Strong Name -AGH!!!
      ... > I move it into the Share and run this command: ... briefly used the "Microsoft .NET Framework 1.1 Configuration" from ... then make sure *no one* get's access to that key file you used to sign ...
      (microsoft.public.dotnet.languages.vb)