xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

how to upload files to CentOS 7 on macOS by using zsh

how to upload files to CentOS 7 on macOS by using zsh

FTP & SFTP

SFTP 端口

SFTP 端口 22

SSH 端口 20

HTTP 端口 80

HTTPS 端口 443

Simple_File_Transfer_Protocol

https://en.wikipedia.org/wiki/File_Transfer_Protocol#Simple_File_Transfer_Protocol

SSH_File_Transfer_Protocol

https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol

https://en.wikipedia.org/wiki/File_Transfer_Protocol#FTP_over_SSH

SFTP

https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server

$ ssh root@your_server_ip_or_remote_hostname
$ exit
 
$ sftp root@your_server_ip_or_remote_hostname
 

# If you are working on a custom SSH port (not the default port 22), then you can open an SFTP session as follows:
$ sftp -oPort=custom_port root@your_server_ip_or_remote_hostname

# download file
sftp> $ get remoteFile

# upload file
sftp> $ put localFile


set up SSH keys

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04

FileZilla

GUI & FTP

https://filezilla-project.org/

CentOS 7 & vim bug

从 vscode 复制代码,粘贴保存后,vim 会自动添加注释

zsh & macOS 拖拽 copy file ???

❌ 不好使,只能复制一个文件路径

refs

# 22 默认 TCP

$ sftp -P 22 aisftp@10.124.163.133

# $ sftp -P 21 aisftp@10.124.163.133

https://www.cnblogs.com/chuanzhang053/p/8875759.html

https://askubuntu.com/questions/264046/how-to-ssh-on-a-port-other-than-22

https://serverfault.com/questions/74176/what-port-does-sftp-use



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(62)  评论(7编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2020-04-15 软件考试 2020
2020-04-15 window.URL.createObjectURL bug All In One
2020-04-15 taro 小程序 & touch event 转换 bug
2020-04-15 云真机
2020-04-15 Rust learning notes All In One
2020-04-15 H5 下拉刷新、加载更多
2019-04-15 table index & delete array item
点击右上角即可分享
微信分享提示