?
Solved

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

Posted on 2010-09-07
8
Medium Priority
?
1,382 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:vmwarecv1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 1

Accepted Solution

by:
psalkiew earned 400 total points
ID: 33617615
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
 
LVL 19

Assisted Solution

by:jools
jools earned 800 total points
ID: 33617952
sshd = Secure Shell Daemon, allow you to login to your host securely.
0
 

Author Comment

by:vmwarecv1
ID: 33618121
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Assisted Solution

by:arober11
arober11 earned 800 total points
ID: 33620244
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
 

Author Comment

by:vmwarecv1
ID: 33620902
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
 
LVL 26

Assisted Solution

by:arober11
arober11 earned 800 total points
ID: 33625307
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
 
LVL 19

Assisted Solution

by:jools
jools earned 800 total points
ID: 33626011
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
 

Author Closing Comment

by:vmwarecv1
ID: 33792902
Thnaks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question