Fedora17 enable the ssh service

Source: Internet
Author: User
Tags openssh server
Fedora17 has already installed opensshserver and does not need to be installed. However, suroot1. enable the ssh service # systemctlstartsshd by default. service2. start the service with the system # systemctlenablesshd. service in terminal, enter setup to add port 22 to the firewall. 3. enable port 22 of the firewall # iptables-

Fedora 17 has been installed with openssh server. You do not need to install it again.
However, this feature is disabled by default.

First, su root
1. Enable the ssh service
# Systemctl start sshd. service

2. Start the service together with the System

# Systemctl enable sshd. service

Enter setup in terminal to add port 22 to the firewall

3. enable port 22 of the firewall

# Iptables-I INPUT-p tcp -- dport 22-j ACCEPT


Tested OK

1. Modify the ssh configuration file vi/etc/ssh/ssh_config under the root permission.

Remove the following three comments, that is, remove the "#" before the comment:

RSAAuthentication yes

PasswordAuthentication yes

Port 22

2. start the SSH service: service sshd start

3. test whether the installation is successful: ssh 192.168,. 253.18 # peer ip Address

Displayed: Are you sure you want to continue connecting (yes/no )? Yes # Enter yes
Appears: root@192.168.253.18's password: # enter the peer role password
Tip: Last login: Sun Nov 18 14:34:41 2012 from 192.168.253.20 # logon successful

 

4. log out after the operation is complete: logout # the consequence of forgetting to log out is that all command line operations are performed on the other machine!

The password-free logon configuration is as follows:

1. Key Generation: ssh-keygen-t rsa

Tip:

The key's randomart image is:
+ -- [RSA 2048] ---- +
| + * ++... |
|. Ooo... |
| +. O. |
| + O. + o |
|. S. o *. |
|. O. E + |
|. |
|
|
+ ----------------- +

2. Transmit the key to the target machine: ssh-copy-id-I ~ /. Ssh/id_rsa.pub 192.168.253.18
3. Log On again without the password: ssh 192.168.253.18

PS: If the PORT 22 connection refused prompt is displayed when the target host is connected, restart the ssh service: service sshd start on the target host.

Related Article

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.