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 @ 2021-04-15 10:52  xgqfrms  阅读(61)  评论(7编辑  收藏  举报