On Wed, 2003-08-20 at 10:24, Sam MacDonald wrote:
> No I don't have a fire wall running (thank you James Spinti)
> 
> I did (as root) ps -ef grep | sshd   (thank you Johnny Fulcrum)
>     results
> root   27813 27782   0:09:04  tty1  00:00:00:  grep sshd
> 
> This is where I get lost because I don't know how to interpret the 
> output of grep so...

Sam,
The command is ps -ef | grep sshd

You are Pipeing (| = pipe) the output of "ps -ef" through the grep
command. "grep sshd" only shows you lines that have the the text "sshd"
in them. When you run that command you are actually starting a process
which contains the text "grep sshd". thats not the process your looking
for :-). If sshd was running you'd get something like this. Process #656
is the ssh daemon. process 8232 results from my "ps -ef | grep sshd"
command.

$ ps -ef | grep sshd
root       656     1  0 Aug17 ?        00:00:00 /usr/sbin/sshd
tomp      8232  2550  0 10:50 pts/0    00:00:00 grep sshd

Is this a redhat distro? If so check out "man chkconfig" to manage what
starts at boot time. also "man ps" and "man grep" if you're interested.
once you have the man page up you can find out what the -e flag does by
typing "/-e". this will search the man page for "-e". then /-f to see
what the -f flag is doing.


-- 
Tom Penney <blots at visi.com>


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list