Re: Single purpose keys for scp

From: Claire (perdita_at_mcc.ac.uk)
Date: 10/07/03


Date: Tue, 7 Oct 2003 14:02:45 +0000 (UTC)


"Craig Robinson" <craig.robinson@epa.qld.gov.au> writes:
>Folks,
>I have successfully been using "single purpose" keys to do some basic remote
>commands over ssh. To create a single purpose key, I have been pre-pending
>the following text (as an example) to the beginning of a public key in the
>authorized_keys2:
>
>command="df -k",no-port-forwarding,no-X11-forwarding,no-agent-forwarding
>ssh-dss AA....... etc.
>
>This enables only the running of the "df -k" command remotely (and only the
>df -k command).
>
>This works fine when you want to run a command on a remote machine. But what
>command can you use, if you want to scp FROM your local machine TO a remote
>machine (ie. the scp command needs to be run from the local machine), and
>that is all you want to allow to be done. I can't quite get my head around
>it and would greatly appreciate any clues.

http://www.snailbook.com/faq/restricted-scp.auto.html

Claire

-- 
Still prettiest by far.


Relevant Pages

  • Re: High latency shell environment
    ... > I've been doing just fine using ssh over 1000ms latency connections ... as a front end to your 'ssh'. ... This means that editing the command line is ... them to your local machine, edit them, and copy them back. ...
    (comp.unix.shell)
  • Re: How to call a remote program through SSH tunnel and pass a local file as parameter?
    ... If I would have the program on the local machine I could call this ... Many people seem to think that rsa keys must be created ... Some sophistications to this script include the ability to use something ... like %f to include the file in your command line. ...
    (comp.security.ssh)
  • Move to Server Still not working.
    ... I been using my local machine as ... When i checked the Event Viewer on the Server it is causing the following ... Instead, open a command window, ... After you set user rights in Windows Explorer, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: command line samba to copy files
    ... >I need some pointers on how to use samba from command line. ... from your local machine to the samba share, ... smb: \> help ...
    (Fedora)
  • Re: command line samba to copy files
    ... I need some pointers on how to use samba from command line. ... Some help I got after research is to use the "smbclient" command ... Use "get" to copy files from the samba share to your local machine, "put" to copy files from your local machine to the samba share, cd to change directories on the server and lcd to change directory on the local machine. ...
    (Fedora)

Quantcast