Activate LinuxSSH service [Fedora12]

Source: Internet
Author: User
A Fedora12 virtual machine has been installed recently. you can connect to this Linux instance by using ssh on your computer, which is very convenient to use. here, let's take a look at how it is configured. 1) install openssh-server [root @ localhost ~] # Yuminstallopenssh-server2) check whether openssh-server has been successfully installed [root @ lo

A Fedora 12 virtual machine has been installed recently. you can connect to this Linux instance by using ssh on your computer. it is very convenient to use. remember how to configure it here.

1) install openssh-server

[Root @ localhost ~] # Yum install openssh-server
2) Check whether openssh-server is successfully installed

[Root @ localhost ~] # Rpm-qa | grep openssh-server


Openssh-server-5.3p1-19.fc12.i686
[Root @ localhost ~] #


3) modify the configuration file of the ssh service

Configure the running parameters of the ssh service by modifying the configuration file/etc/ssh/ssh_config. the/etc/ssh/ssh_config file has many configuration options, but most of them have been commented out using.

# Port 22

# Protocol 2, 1

# PermitRootLogin yes

Save the configuration file after configuration, but this is not required if there are no special requirements.

4) restart the SSH service

[Root @ localhost ~] #/Etc/rc. d/init. d/sshd restart

Stopping sshd: [OK]

Starting sshd: [OK]
5) If the firewall is enabled, we need to allow port 22 of the TCP protocol to pass through.

[Root @ localhost ~] # Iptables-I INPUT-p tcp -- dport 22-j ACCEPT
6) to enable the ssh service to run after it is started, run the # ntsysv command to open the startup service tab. select sshd and press "OK ".

[Root @ localhost ~] # Ntsysv

7) now all the work has been completed. you can try to log on to Fedora through the client SSH. I use PUTTY, a very useful software that supports Telnet and SSH.
 

 

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.