Install ssh on fedora18

Source: Internet
Author: User
Fedora18 install ssh 1. Fedora start sshd Service: 1. check whether the ssh service is installed: [root @ localhost ~] # Rpm-qa | grepopenssh-serveropenssh-server-5.3p1-19.fc12.i686 (this line indicates installed) if the ssh server is not installed... fedora18 install ssh 1. Fedora start sshd Service: 1. check whether the ssh service is installed: [root @ localhost ~] # Rpm-qa | grep openssh-server openssh-server-5.3p1-19.fc12.i686 (this line indicates installed) if the ssh service is not installed, enter: # yum install openssh-server installation 2. modify the configuration file # vi/etc/ssh/sshd_config # Port 22 listening Port number. the default value is 22, which can be customized. # Protocols supported by Protocol 2. the default setting is good. you do not need to modify # PermitRootLogin yes: whether to allow direct root logon. it is best to set it to no # MMaxAuthTries 6. the default setting is 6, it is recommended to set it to 3 to prevent other users' passwords from being exhausted. After modifying the configuration, restart the SSH service: [root @ localhost ~] #/Etc/rc. d/init. d/sshd restart Stopping sshd: [OK] Starting sshd: [OK]: 3. View sshd status: # service sshd status 4. set Port 22 (or another custom port) add it to the firewall settings and mark it as Accept # iptables-a input-p tcp -- dport 22-j ACCEPT (This sentence is very important, otherwise the external connection will not work .) You can also add the preceding parameters to the firewall configuration: # vi/etc/sysconfig/iptables: -a input-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT save and restart iptables. for details, refer to iptables usage 2. sora15/16/17 to start sshd service.: since systora 15/16 uses the systemd service, 1. starting the SSH service is somewhat different from the above # systemctl start sshd. service or # service sshd start can also use restart and stop to control sshd service 2. set enable service when the system starts # systemctl enable sshd. service 3. you also need to enable port 22 of the firewall # iptables-a input-p tcp -- dport 22-j ACCEPT. you can also add the preceding parameters to the firewall configuration: # vi/etc/sysconfig/iptables Add:-a input-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT save and restart iptables.

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.