English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Centos6.5 ssh Configuration and Usage Tutorial

Here, I would like to introduce CentOS6.5 The knowledge of SSH configuration and usage tutorial is as follows:

#rpm -Check if the SSH package is installed using the command 'qa |grep ssh'
#yum install openssh-Install SSH service if the server does not have it
#chkconfig --Check if SSHD is set to start on boot at this run level using the command 'list sshd'
#chkconfig --level 2345 sshd on If not set, set it
#service sshd restart Restart SSHD
#netstat -antp |grep sshd Check whether it has started22Port, need to confirm
#iptables -nL Check whether it has been allowed22口
#iptables -I INPUT -p tcp --dport 22 -j ACCEPT If not, allow it22Port
#iptables save Save the firewall rules
# vi /etc/ssh/sshd_config Open the SSH configuration file with vi, detailed explanation: https://www.oldtoolbag.com/os/201401/272738.html, here we keep the default (allow normal users to log in with a password)
#useradd lhc Add a normal user (lhc)
#passwd lhc  Modify the password of lhc

Download and install Super Terminal

Link:http://pan.baidu.com/s/1c2mbJBq Password: awlc

After installation, start the application——>Create a new connection


If the input is correct, you should be able to log in successfully.

Upload and download through sftp


The following is what the editor introduces to everyone about Centos6.5 SSH configuration and usage tutorial, hoping it will be helpful to everyone. If you have any questions, please leave a message, and the editor will reply to everyone in a timely manner. I would also like to express my heartfelt thanks to everyone for their support of the Yana tutorial website!

Declaration: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, has not been edited by humans, and does not assume any relevant legal liability. If you find any content suspected of copyright infringement, please send an email to notice#w.3Please send an email to codebox.com (replace # with @ when sending an email) to report any violations, and provide relevant evidence. Once verified, this site will immediately delete the content suspected of infringement.

You May Also Like