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.