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.