Re: authorized_keys with command= option

From: sam (sam++_at_--.com)
Date: 05/04/05

  • Next message: eight02645999_at_yahoo.com: "data encryption"
    Date: Wed, 04 May 2005 10:07:59 +0800
    
    

    Richard E. Silverman wrote:
    >>>>>>"sam" == sam <sam++@--.com> writes:
    >
    >
    > sam> no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="scp
    > sam> -p -f /usr/local/etc/",from="192.168.1.1"
    >
    > This is not how scp works; see:
    >
    > http://www.snailbook.com/faq/restricted-scp.auto.html
    >
    Thhis reference is not in detail, and only described a little further in
    SSH1. I m using version of SSH > 2.

    However I managed to dicovered what the scp commandline is interpreted
    by the remote host. It is scp -p -t dir as translated by the remote host.

    I read some where that I can define regular expression in the command=
    option line. But I m not sure how to do so. I want to define something
    as follow:
    command="scp -p -t (/usr/local/etc/*|/etc/)"
    or
    command="scp -p -t (*/etc/*)"

    Thanks
    Sam


  • Next message: eight02645999_at_yahoo.com: "data encryption"

    Relevant Pages

    • Re: SSH through wireless router
      ... When you say that I should try ssh ... Connection closed by remote host ... When I went to sshd to port 2222: ... debug1: read PEM private key done: type RSA ...
      (Debian-User)
    • Re: How do I port forward through 2 remote hosts?
      ... You gave a port number. ... desktop to a remote host for many years. ... I have read through the SSH FAQ which did nothing to help me ... loss to understand what remote forwardings (as opposed to local ...
      (comp.security.ssh)
    • Re: Passwordless ssh - SOLVED -
      ... I can now login without passwords but I have to kinit on each box before it will work. ... I built my kdc and configured my ssh daemon to use kerberos on both computers. ... I copied the krb5.keytab file to my remote host and setup the krb5.conf file on the remote host. ... After this is done I can ssh from my KDC to my remote host and I am not asked to enter my password. ...
      (comp.protocols.kerberos)
    • Re: unattended file transfer with ssh
      ... disadvantage to using rsync and can't come up with one:) ... To set up ssh, ... $HOME/.ssh/authorized_keys on the remote host. ... On the local machine invoke this command: ...
      (comp.security.ssh)
    • Re: reverse SSH / SSH over NAT traversal
      ... The remote host is behind a NAT/firewall and it's not possible to ask the admin to tunnel a port. ... can the remote user type in some command in their terminal to connect (SSH?) to my network - and thereby allow me to get a terminal on the remote machine. ... I think this is possible with a reverse SSH tunnel - but I don't really want to allow the remote user any access to my system. ...
      (Fedora)

  • Quantcast