LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2013, 04:44 AM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
Lightbulb Two Processes for an ssh Session or Log-in


Hi,

Why do I see two different processes for my ssh session?

Why there is my UID in the User field (in the first column) for the Dev@pts/16 process?

What does [priv] means in the first instance of my ssh session?

Code:
[root@dev-host ~]# ps auxf | grep -E "(sshd$|Dev)"
root      3009  0.0  0.0  60744  1196 ?        Ss    2012   0:01 /usr/sbin/sshd
root     12941  0.0  0.1 104584  4936 ?        Ss   09:31   0:00  \_ sshd: Dev [priv]
14703    12947  0.0  0.0 104584  2452 ?        S    09:31   0:00  |   \_ sshd: Dev@pts/16
Please Note: Actually, I logged-in to the server as Dev and then switched user to root.

Thanks,
Dev.

Last edited by devUnix; 07-29-2013 at 04:46 AM.
 
Old 07-29-2013, 05:02 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
/usr/sbin/sshd [3009] is a daemon process, actually it only listens on the given port and starts a new sshd process [12941] if required. That will serve your request and therefore will fork a child process [12947], will assign it to you, open a terminal and run a login shell.
 
1 members found this post helpful.
  


Reply

Tags
ssh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH concurrent session limit and idle session time out lasygsd Linux - Newbie 3 10-30-2014 07:56 AM
make commands keep running after leaving a terminal session or ssh session Danny3031 Programming 18 01-30-2012 11:29 AM
how to log ssh activity in /var/log/ssh/ssh*.log MrUmunhum Linux - Server 3 11-02-2011 02:25 AM
What the %$#@ is pam_unix (cron:session) doing every ten minutes? (/var/log/auth.log) CoffeeKing!!! Linux - Security 3 02-05-2009 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration