Skip to content

Commit

Permalink
Update 2024-09-02-SSH 远程登录以及 SFTP 文件传输.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoZap authored Oct 19, 2024
1 parent aa966d8 commit af58f01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _posts/2024-09-02-SSH 远程登录以及 SFTP 文件传输.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ sftp连接到远程主机的方式与 ssh 命令相同。

## 2 改变远程目录

```plain
```shell
cd 目标路径
```

## 3 改变本地当前工作目录

```plain
```shell
lcd 目标路径
```

## 4 上传文件

```plain
```shell
put 本地文件路径 [远程目标目录路径]
```

如果未指定远程目标目录路径,此命令会将本地文件上传到当前远程目录。可以使用 `-r`选项递归上传目录。

## 5 下载文件

```plain
```shell
get 远程文件路径 [本地目标目录路径]
```

Expand All @@ -87,4 +87,4 @@ sftp -P <remote_port> username@<hostname>

# 退出SFTP连接

输入`exit``quit`并回车
输入`exit``quit`并回车

0 comments on commit af58f01

Please sign in to comment.