0
点赞
收藏
分享

微信扫一扫

linux下的SCP、NFS、TFTP服务器配置及客户端使用

NicoalsNC 2022-03-30 阅读 49
linux

SCP

安装SCP、NFS、TFTP

//sudo apt install -y openssh-server nfs-kernel-server nfs-common tftpd-hpa tftp-hpa

ssh配置

//ifconfig

windows下scp客户端配置

![在这里插入图片描述](https://img-blog.csdnimg.cn/68f72efeb9fa4e12944acde53eb11136.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBASGFfRGFkYQ==,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center#### #### 利用scp传送文件夹

//scp -r /home/PoetryWine/share ubuntu@172.16.171.129:/home/ubuntu

在这里插入图片描述

NFS

设置本地目录权限

//mkdir /nfs
chmod -R 777 /nfs
chown -R nobody /nfs

添加目录到共享

修改exports文件

//vim /etc/exports

更新文件,启动NFS

///usr/sbin/exportfs -a
service nfs-kernel-server start

修改etc/fstab,使NFS mount永久生效

在这里插入图片描述

TFTP

配置TFTP服务器

//sudo vi /etc/default/tftpd-hpa

配置文件

创建文件目录

//sudo mkdir /tftp
sudo chmod -R 777 /tftp
sudo chown -R nobody /tftp
echo 'asdf' > /tftp/t.txt

启动服务器

//sudo service tftpd-hpa start
举报

相关推荐

0 条评论