|
|||||||||||
|
RE: Running a user command instead of shell in sshd
From: Anurag Bhatia <Anuragb(at)ami.com>
Date: Mon Jun 16 2003 - 12:44:39 EDT
-----Original Message-----
Sent: Monday, June 16, 2003 11:49 AM
You specify the command on the SERVER in the authorized_keys file. No good if you're using passwords, but passwords belong to the stone-age anyway. Example: no-port-forwarding,command="scp -f pkg.tgz" 1024 35 15380763064275803165825574359049772824482811179327377929246 8902015107913367648771042550704772130037344261274761833680034685759921953391 86434023976829367961081195503291034931157525770429044778 6782238764274893693462281170070804057659618701271979929297525220661548449357 8976689459659332801317258899691289 root@spike This specific example actually only works if you are forcing them to copy a particular file with scp. Whatever file they specify, they will ONLY get the one specified above :-) You can have other commands though - and the session exists when the command does. If you have ONE user who needs to be able to do one of TWO commands, then get them to use two different identities and specify one command for each of the two public keys. Robert Baskerville
-----Original Message-----
Hi,
-----Original Message-----
Hi anurag , The ssh syntax is this : ssh username@<machine name of IP> <command to be exceuted at the remote end> If the command is not given it request for shell.
-regards,
-----Original Message-----
It is refering to an actual scenario when
"the client either requests a shell or execution of a command"
The case when the client is requesting ae execution command is specified
by
:-)
On Friday 13 June 2003 05:33 pm, Anurag Bhatia wrote:
*** The contents of this email and any attachments may be confidential. It is intended for the named recipient(s) only. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to any other person or make any copies. Vistorm monitors communications. ISO 9001 Registered Firm Certificate Number GB 10940 *** Received on Mon Jun 16 15:10:14 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:59 EDT |
||||||||||
|
|||||||||||