Linux FTP Enable and disable and VSFTPD installation SSH enable and disable commands and SSH installation

Source: Internet
Author: User

1. The first page to use FTP; VSFTPD must be installed on the server

Installation commands

Yum installed VSFTPD
To See if vsftpd starts [email protected]:/home/daokr# service vsftpd status Vsftpd.service-vsftpd FTP Server loaded:loaded (/lib/systemd/system/vsftpd.service Vendor Preset active:active (running) since day2018-Geneva- on xx: -: -CST; 10h ago Process:8778Execstartpre=/bin/mkdir-p/var/run/vsftpd/empty (code=exited Main PID:8781(VSFTPD) CGroup:/system.slice/vsftpd.service└─8781/usr/sbin/vsftpd/etc/Vsftpd.conf4 Month on xx: -: -DK systemd[1]: Starting vsftpd FTP server ... April on xx: -: -DK systemd[1]: Started vsftpd FTP server.
Service VSFTPD status to see if it starts

Service vsftpd start and Stop command starts and stops
2. Uploading and downloading files using FTP
192.168. 10.168

Upload command:

Mput the file name to upload

Download command

Mget to download the file name

To view the path of a remote server: PWD

To view the current path of the Local machine:! Pwd

If you want to switch the directory path of the current local machine: LCD command to switch to/HOME/DAOKR

!  /home/daokr/

3. Configuration,/etc/vsftpd.conf

Use Vim to edit the profile setting it allows anyone to anonymously use the upload 25 line comment out

#anonymous_enable =NO
 #anonymous_enable =28 local_enable=- write_ Enable=yes

4. Log in to the remote machine using the SSH command

Installing Apt-get install SSH

192.168. 10.88

Deactivate SSH

Service SSH Stop

Results:

[Email protected]:~$ ps-ef|grep SSH
Root 9518 1 0 11:15? 00:00:00 sshd: Daokr [Priv]
Daokr 9547 9518 0 11:15? 00:00:00 sshd: [Email protected]/20
Root 9783 1 0 11:55? 00:00:00 sshd: Daokr [Priv]
Daokr 9834 9783 0 11:55? 00:00:00 sshd: [Email PROTECTED]/4
Daokr 9903 9835 0 11:58 pts/4 00:00:00 grep--color=auto ssh

Enable SSH

After starting, there will be one more sbin the following instructions

Root 9781 1 0 11:54? 00:00:00/usr/sbin/sshd-d

This instruction is already enabled

Service SSH startsercice ssh restart

[Email protected]:~$ ps-ef|grep SSH
Root 9518 1 0 11:15? 00:00:00 sshd: Daokr [Priv]
Daokr 9547 9518 0 11:15? 00:00:00 sshd: [Email protected]/20
Root 9781 1 0 11:54? 00:00:00 /usr/sbin/sshd -D
Root 9783 9781 0 11:55? 00:00:00 sshd: Daokr [Priv]
Daokr 9834 9783 0 11:55? 00:00:00 sshd: [Email PROTECTED]/4
Daokr 9854 9548 0 11:57 pts/20 00:00:00 grep--color=auto ssh

One of the

Daokr 9547 9518 0 11:15? 00:00:00 sshd: [Email protected]/20

And

Daokr 9834 9783 0 11:55? 00:00:00 sshd: [Email PROTECTED]/4

Indicates that already 2 users have been linked and used SSH;

You can end the link by kill-9 9834来

Kill-99834

Linux FTP Enable and disable and VSFTPD installation SSH enable and disable commands and SSH installation

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.