sshd process running - /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid

Hello Experts,
I was looking at the server recently build and found the below process running, does anyone know what this process is doing and what it is used for.

/usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid

Thanks in advance.
vmwarecv1Asked:
Who is Participating?
 
psalkiewConnect With a Mentor Commented:
It is ssh server process. It allows you to log into the bash shell from distant machine over a secure connection (tcp port 22).
0
 
joolsConnect With a Mentor Commented:
sshd = Secure Shell Daemon, allow you to login to your host securely.
0
 
vmwarecv1Author Commented:
Thank you.

And the reason i was curious about this process is when i enter 'w', below is the out put
 w
 14:25:35 up 19 days, 42 min,  3 users,  load average: 0.11, 0.10, 0.08
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/1     13:18    0.00s  0.03s  0.00s w
root     pts/4     18Aug10  0.00s  0.00s  0.20s /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid

whereas on other servers, its only

w
 14:26:23 up 32 days,  8:54,  3 users,  load average: 0.07, 0.12, 0.09
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/1     14:26    0.00s  0.02s  0.00s w

Thinking is their any significance/difference in the first server compared to second. Any idea!
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
arober11Connect With a Mentor Commented:
How are you connecting to the two servers?

If it's a direct (physical / console) connection, and you have no need of remote ssh access to the server then you can stop the daemon e.g.

/etc/init.d/sshd stop

And see if it breaks anything.

If you wish to permanently disable the daemon, just remove the associated symbolic links to the init.d script e.g.

#Find the links
find /etc/rc.d/ -type l -name "*sshd"

# Delete the links
find /etc/rc.d/ -type l -name "*sshd" -exec rm -f {} \;
0
 
vmwarecv1Author Commented:
I can connect to both the servers using ssh.
I was wondering why 'w' output for one server shows the process and not for the other server.
0
 
arober11Connect With a Mentor Commented:
On the server that dosen't show a sshd process do a:

 ps -ef | grep sshd

You may see a daemon, but running under a different user-id.
0
 
joolsConnect With a Mentor Commented:
It shows in `w` because it was run by the user as opposed to being started as a service.

I tend to use ps for listing processes as shown above.
0
 
vmwarecv1Author Commented:
Thnaks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.