Enable ssh on openSUSE

Okay, going to explain how to install and enable ssh on your openSUSE box here. Some people didn’t seem to get it to work altough there is an older article describing how to do it with SysVInit. My article will have the same format just with the new commands. On the openSUSE wiki they explain it via yast.

zypper if openssh

Install package if it isn’t installed:

zypper in openssh
systemctl status sshd

Start service:

systemctl start sshd vs rcsshdstart?

Check if service is launched at startup:

systemctl is-enabled sshd

Launch it on system startup:

systemctl enable sshd
SuSEfirewall2 status | grep 22

If you don’t get any output from that command open the port with:

SuSEfirewall2 open EXT TCP ssh

That’s it!