Linux system configuration SSH server side

Source: Internet
Author: User
Keywords LINUX SSH server-side
Tags cd command computer configuration create file key linux linux system

To use a computer as an SSH server, you need to do the following steps.

1 login Smallfry with username filecopy. Create a subdirectory named by. SSH in your personal folder and enter the subdirectory with the CD command.

[Filecopy@smallfry filecopy]# lspublic-key.tmp[filecopy@smallfry filecopy]# mkdir Ssh[filecopy@smallfry chmod ssh[filecopy@smallfry filecopy]# CD. SSH

2 Add public-key.tmp file to Authorized_keys tail with >> redirect symbol and Cat command. The Authorized_keys file contains a list of all linked terminal public keys that allow you to log in with Smallfry without a password. Linux distributions other than Redhat/fedora may use different file names, and you will need to use the SSH Help manual to determine the filename.

[Filecopy@smallfry ssh]# cat ~/public-key.tmp >> authorized_keys[filecopy@smallfry. ssh]# RM ~/public-key.tm

From now on you can use SSH and SCP to filecopy Login server bigbody to Smallfry for user name without password.

Most Linux system security books recommend http://www.aliyun.com/zixun/aggregation/6579.html "> users use more secure SSH and SCP instead of Telnet and FTP." Nevertheless, the ability to provide easy global file and Telnet access to FTP is still widely available worldwide and is easier to deploy on expensive network devices than 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.