Enable the sshd service in opensuse

Source: Internet
Author: User

After opensuse 11 is installed, it is found that the SSH connection fails. You can ping it, But Telnet does not work. After checking the service, it is found that the SSH service is not enabled. Steps:
1. Modify the sshd_config file.
Remove the comment of # passwordauthentication no and change no to yes.

3. Comment out # permitrootlogin yes.

4. Restart the SSH service:/etc/init. d/sshd restart

5. Verify the SSH service status:/etc/init. d/sshd status.
 

The service is started but cannot be connected. The firewall may be used to disable the firewall, and the service iptables stop. No service change was found. In the past, Suse's Firewall was not iptables, but a firewall tool provided by its system. In addition, the default SuSE firewall is set to reject all requests. Modify the firewall and enable the sshd Port

1. modify the configuration file/etc/sysconfig/susefirewall2

2. Development Port:
# TCP port:
Fw_services_ext_tcp = "22"
# UDP port status:
Fw_services_ext_udp = "23"
Restart firewall: rcsusefirewall2 restart

Reconnect to SSH and the connection is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.