请问 sftp 如何配置?
Tofloor
poster avatar
testpassword
deepin
2019-09-29 03:33
Author
我想在电脑上开启sftp服务,在局域网内给手机共享文件,但是论坛上没找到教程,百度了一圈也没搞定,我好难啊。

我知道自带的sftp命令可以实现,所以就不想装别的软件了,但是不知道这个命令怎么用的,有没有大佬指导一下。
Reply Favorite View the author
All Replies
avatar
Feng Yu
deepin
2019-09-29 04:22
#1
Deepin自带有samba,可以直接共享文件,和Windows兼容
Reply View the author
avatar
la******ng@outlook.com
deepin
2019-09-29 04:56
#2
https://youtu.be/w_OwmqjAcn0
這個 YouTuber 真的很棒
Reply View the author
avatar
139******14
deepin
2019-10-01 01:41
#3
如果只是给自己用的话,允许22端口远程访问就可以了
Reply View the author
avatar
wildlife
deepin
2019-10-02 00:54
#4
1.文件上传

#格式:put [-Ppr] local [remote]
#例如把当前本地用户目录文件test.c上传到远程主机/tmp/目录
put ~/test.c /tmp/
#例如把当前本地用户目录文件test/上传到远程主机/tmp/目录
put -r ~/test/ /tmp/
2.文件下载

#格式:get [-Ppr] remote [local]
#例如从远程主机下载文件/tmp/test.c到当前本地用户目录
get /tmp/test.c ~/
#例如从远程主机下载文件夹/tmp/test/到当前本地用户目录
get -r /tmp/test/ ~/
3.其它命令

        sftp远程主机后输入ls、cd、pwd等命令是在远程主机执行,要在本地主机执行要在命令前加l(localhost的意思),对应的应为lls、lcd、lpwd。其它命令可以使用help查看用法。
Reply View the author
avatar
testpassword
deepin
2019-10-02 01:14
#5
谢谢楼上几位,我已经搞定了
Reply View the author