How to enable the SSH service on SUSE?

To enable the SSH service on SUSE, you can follow these steps:

  1. Open the terminal.
  2. Switch to root user
  3. install openssh using zypper
  4. During the installation process, you may be prompted to enter the root password for confirmation. Enter the password and press the Enter key.
  5. Start the SSH service using systemctl.
  6. Enable the sshd service using systemctl.
  7. 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:

  1. If using Firewalld, input the command firewall-cmd –add-service=ssh –permanent, then restart the firewall with firewall-cmd –reload.
  2. If using iptables: iptables -A INPUT -p tcp –dport 22 -j ACCEPT.
Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds