How to enable the SSH service on SUSE?
To enable the SSH service on SUSE, you can follow these steps:
- Open the terminal.
- Switch to root user
- install openssh using zypper
- During the installation process, you may be prompted to enter the root password for confirmation. Enter the password and press the Enter key.
- Start the SSH service using systemctl.
- Enable the sshd service using systemctl.
- The SSH service has been successfully started. You can now connect to SUSE using the SSH protocol from another computer.
Please make sure to allow SSH traffic through if you are using a firewall. You can use the following command to open the SSH port:
- If using Firewalld, input the command firewall-cmd –add-service=ssh –permanent, then restart the firewall with firewall-cmd –reload.
- If using iptables: iptables -A INPUT -p tcp –dport 22 -j ACCEPT.