# 查看版本

ssh -V

# 连接

ssh serverName@IPaddress

# SCP传输文件或者文件夹(-r)

# 上传文件

scp [ localFilePath ] [ userName@IPaddress ] : [ remoteFilePath ] 将本地文件传输到服务器

scp F:/1.c root@123.60.138.52:/root/work/
# 将本地文件 F:/1.c 传输到 服务器 /root/work/下

# 下载文件

scp [ userName @ IPaddress ] : [ remoteFilePath ] [ localFilePath ] 将服务器文件传输到本地

scp root@123.60.138.52:/root/work/1.c F:/1.c
# 将服务器 /root/work/1.c 传输到 本地 F:/1.c

# SFTP

# 登录

sftp userName@address

# 退出

quit

# 获取文件/文件夹

get -r [ rematePath ] [ localtionPath ]

# 上传文件/文件夹

put -r [ localtionPath ] [ rematePath ]

# 查看文件夹

ls -a # remate文件夹 lls -a # localtion文件夹

# 改路径

cd path # remate路径 lcd path # location路径

# 查看路径

pwd # remate路径 lpwd # location路径