Sunday, October 27, 2013

How to check the SSH status on Fedora 19

SSH provides a secure network connection to a Linux system. On Fedora, we can easily start, stop the sshd status via command line. Here I want to show you how to check the status of the ssh server on Fedora 19.
Open Terminal and type the following commands

su
service sshd status
If your ssh server is running, you will get the following output on Terminal

[root@localhost liveuser]# service sshd status
Redirecting to /bin/systemctl status  sshd.service
sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled)
   Active: active (running) since Sun 2013-10-27 03:44:08 EDT; 5s ago
  Process: 2986 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
 Main PID: 3009 (sshd)
   CGroup: name=systemd:/system/sshd.service
           └─3009 /usr/sbin/sshd -D
Oct 27 03:44:08 localhost sshd-keygen[2986]: Generating SSH2 RSA host key: [...]
Oct 27 03:44:08 localhost sshd-keygen[2986]: Generating SSH1 RSA host key: [...]
Oct 27 03:44:08 localhost systemd[1]: Started OpenSSH server daemon.
Oct 27 03:44:09 localhost sshd[3009]: Server listening on 0.0.0.0 port 22.
Oct 27 03:44:09 localhost sshd[3009]: Server listening on :: port 22.

0 comments:

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More