command in authorized keys, password and keys file : weird behaviour ?

From: JL (jean-louis.ly@eads-telecom.com)
Date: 11/18/02


From: jean-louis.ly@eads-telecom.com (JL)
Date: 18 Nov 2002 09:13:17 -0800

hello everyone

first of all i want to apologize for my poor english :)
then for the post
i know my subject may seem a bit confused
i'll explain
i've set up openssh 3.5p1 under bsd/os so i can log on a server with
both password and public key (not hard you would say)
then i edited the authorized_keys file so it can execute some commands
for example a test would be :
command="ls", ssh-dss .....
then when i log using the key associated, it executes ls and quits
until here everything is normal
then i wondered what would happen if i deleted my private key file
i did so and then tried to connect again
it asks for my password but then, executes ls and quits
though i deleted the private key file it still executes the command
associated to that key ?
i looked into it a bit further and i found that if there is at least
one of both key files (private or public) the server checks the
authorized_keys file (even if it is password authentication that
allows me in the server), executes the command associated to that key
and quits
bug or not ?



Relevant Pages

  • Re: httpcertcfg for server 2008
    ... the machine key directory and then you can modify the permissions using the ... programmatically finds the machine key file and opens the Windows shell ... You can even make an educated guess on which file is the private key file if ... protected by client digital certificates. ...
    (microsoft.public.windows.server.security)
  • Re: Code being skipped
    ... I tried fgets, ... but then the program just executes once and quits. ... Harald van Dijk wrote: ...
    (comp.lang.c)
  • Re: Macro suffers from premature exiting
    ... quits at next ActiveSheet ... It executes the command, but then quits, with no error message. ...
    (microsoft.public.excel.programming)
  • Re: Macro suffers from premature exiting
    ... I you take out the "On Error Resume Next" statement, what VBA error ... quits at next ActiveSheet ... It executes the command, but then quits, with no error message. ...
    (microsoft.public.excel.programming)
  • Macro suffers from premature exiting
    ... One of my macros, which has been working for years, now quits prematurely. ... will consistently quit about the 5th statement in on a activesheet.name command. ... It executes the command, but then quits, with no error message. ...
    (microsoft.public.excel.programming)

Quantcast