fedora: start ssh service
how to start ssh service?
sudo service sshd start:
[liyi@localhost ~]$ sudo service sshd start
[sudo] password for liyi:
Redirecting to /bin/systemctl start sshd.service
if you need to check the service status:
sudo service sshd status:
[liyi@localhost ~]$ sudo 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 2015-03-15 21:23:58 CST; 1min 12s ago
Process: 4910 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
Main PID: 4944 (sshd)
CGroup: name=systemd:/system/sshd.service
└─4944 /usr/sbin/sshd -D
Mar 15 21:23:57 localhost.localdomain sshd-keygen[4910]: Generating SSH2 RSA ...
Mar 15 21:23:58 localhost.localdomain sshd-keygen[4910]: Generating SSH1 RSA ...
Mar 15 21:23:58 localhost.localdomain sshd-keygen[4910]: Generating SSH2 DSA ...
Mar 15 21:23:58 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
Mar 15 21:23:58 localhost.localdomain sshd[4944]: Server listening on 0.0.0.0...
Mar 15 21:23:58 localhost.localdomain sshd[4944]: Server listening on :: port.
sudo service sshd start:
[liyi@localhost ~]$ sudo service sshd start
[sudo] password for liyi:
Redirecting to /bin/systemctl start sshd.service
if you need to check the service status:
sudo service sshd status:
[liyi@localhost ~]$ sudo 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 2015-03-15 21:23:58 CST; 1min 12s ago
Process: 4910 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
Main PID: 4944 (sshd)
CGroup: name=systemd:/system/sshd.service
└─4944 /usr/sbin/sshd -D
Mar 15 21:23:57 localhost.localdomain sshd-keygen[4910]: Generating SSH2 RSA ...
Mar 15 21:23:58 localhost.localdomain sshd-keygen[4910]: Generating SSH1 RSA ...
Mar 15 21:23:58 localhost.localdomain sshd-keygen[4910]: Generating SSH2 DSA ...
Mar 15 21:23:58 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
Mar 15 21:23:58 localhost.localdomain sshd[4944]: Server listening on 0.0.0.0...
Mar 15 21:23:58 localhost.localdomain sshd[4944]: Server listening on :: port.