On Fri, 12 Jun 2015, John L. Ries wrote:
Then you can check status, like so:
systemctl status ssh.service
The output of this command (above) doesn't change
after a tunnel is started.
My old clunky ps command tells me the tunnel is there:
# ps ax |grep ssh
458 ? Ss 0:00 /usr/sbin/sshd -D
904 ? Ss 0:00 /usr/bin/ssh-agent /bin/bash /home/bob/.xsession
3503 pts/1 S+ 0:00 ssh b...@fanatick.org
3613 ? S 0:00 ssh -N -T -L 4900:localhost:5901 sixtiessurvivor.org
&
3624 pts/3 S+ 0:00 grep ssh
But systemd tells me only:
# systemctl status ssh.service
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service;
enabled)
Active: active (running) since Tue 2015-06-09
21:12:58 EDT; 2 days ago
Main PID: 458 (sshd)
CGroup: /system.slice/ssh.service
└─458 /usr/sbin/sshd -D
Jun 09 21:13:02 newtroll sshd[458]: Server listening
on 0.0.0.0 port 22.
Jun 09 21:13:02 newtroll sshd[458]: Server listening
on :: port 22.
Hrrrmmm....
--
These are not the droids you are looking for.