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.