Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and configuration of FTP, TFTP, NFS, SSH on Ubuntu

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the installation and configuration on Ubuntu FTP, TFTP, NFS, SSH, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

FTP:

FTP (File Transfer Protocol, File transfer Protocol) is one of the protocols of TCP/IP protocol group. The FTP protocol consists of two parts, one is the FTP server and the other is the FTP client. The FTP server is used to store files, and users can access resources located on the FTP server through the FTP protocol by using FTP clients. When developing a website, the FTP protocol is usually used to upload the web page or program to the web server. In addition, because of the high transmission efficiency of FTP, this protocol is generally used when transferring large files in the network.

By default, the FTP protocol uses ports 20 and 21 of the TCP ports. 20 is used to transmit data and 21 is used to transmit control information. However, whether or not to use port 20 as the port for data transmission is related to the transmission mode used by FTP. If the active mode is used, the data transfer port is 20; if the passive mode is used, the server and the client need to negotiate to decide which port to use.

The FTP address format is as follows:

Ftp:// username: password @ FTP server IP or domain name: FTP named port / path / path

FTP installation:

Sudo apt-get install vsftpd

FTP configuration:

Modify the configuration file / etc/vsftpd.conf of vsftpd to remove the'# 'sign from the following two lines

# local_enable = yes allows local users to log in

# write_enable = yes allows you to upload files

SSH:

SSH is an acronym for Secure Shell and was developed by IETF's network team (Network Working Group). SSH is a security protocol based on the application layer. SSH is currently a reliable protocol designed to provide security for remote login sessions and other network services. The use of SSH protocol can effectively prevent information leakage in the process of remote management. SSH was originally a program on the UNIX system, and then rapidly expanded to other operating platforms. When used correctly, SSH can make up for loopholes in the network. The SSH client is suitable for a variety of platforms. Almost all UNIX platforms-including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and others-can run SSH.

SSH service installation:

Sudo apt-get install openssh-server

The configuration file is / etc/ssh/sshd_config

Restart the ssh service:

Direct execution / etc/rc.d/init.d/ssh restart or sevice ssh restartrestart includes stop,start.

NFS Service:

NFS (Network File System, Network File system) is one of the file systems supported by FreeBSD, which allows computers in the network to share resources over the TCP/IP network. In the application of NFS, the client application of the local NFS can read and write files located on the remote NFS server transparently, just like accessing the local file.

NFS installation:

Sudo apt-get install nfs-kernel-server portmap

NFS configuration:

The configuration file / etc/exports, which adds some content, can be accessed through the network file system / work/nfs_root directory

/ work/nfs_root * (rw, sync, no_root_squash)

Rw: the client has read and write access to this directory

Sync: write data to memory and hard disk synchronously

No_root_squash:root has full administrative access to the root directory

Then restart nfs:

Sudo / etc/init.d/nfs-kernel-server restart

TFTP:

TFTP (Trivial File Transfer Protocol, simple File transfer Protocol) is a protocol used for simple file transfer between client and server in the TCP/IP protocol family, which provides non-complex and low-cost file transfer service. The port number is 69.TFTP, a simple protocol for transferring files, which is implemented based on the UDP protocol, but we are not sure that some TFTP protocols are based on other transport protocols. This protocol is designed for small file transfer. Therefore, it does not have many of the usual functions of FTP, it can only obtain or write files from the file server, cannot list directories, does not authenticate, it transmits 8-bit data. There are three modes in the transfer: netascii, which is the 8-bit ASCII code, and octet, which is the 8-bit source data type; the last mail is no longer supported and returns the returned data directly to the user rather than saving it as a file.

Install TFTP:

Sudo apt-get install openbsd-inetd tftpd tftp

Configure TFTP:

Modify the configuration file / etc/inetd.conf with a line:

Tftp dgram udp wait nobody / usr/sbin/tcpd / usr/sbin/in.tftpd / srv/tftp

Change "nobody" / srv/tftp "to" root "," / work/nfs_root "to indicate the tftp directory.

Thank you for reading this article carefully. I hope the article "installation and configuration on Ubuntu FTP, TFTP, NFS, SSH" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report