Skip to content

Commit 963a922

Browse files
authored
Merge pull request #19 from TNK-Studio/dev
[ADD] support download file from server
2 parents dc89c5a + 12689ed commit 963a922

File tree

5 files changed

+277
-131
lines changed

5 files changed

+277
-131
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,19 @@ Use the arrow keys to navigate: ↓ ↑ → ←
6767
6868
You can use it after logging in with your password again.
6969
70-
### Copy files to server via jumpserver
70+
### Copy files to/from server via jumpserver
7171
72-
If you want to copy files to the server via a springboard, you can use the `scp` command in the following format:
72+
If you want to copy files to / from the server via jumpserver, you can use the `scp` command in the following format:
7373
7474
```shell
7575
$ scp -P 2222 ~/Desktop/README.md gzp@jumpserver:gzp@server2:~/Desktop/README1.md
7676
README.md 100% 9279 73.9KB/s 00:00
7777
```
7878
79-
Note the use of `:` after `gzp@jumpserver` plus the `key` and `username` of the server you need to transfer, and finally write the destination path.
80-
Folder transfer is currently not supported. Please compress the file and upload it.
81-
82-
### Copy files from server via jumpserver
79+
```shell
80+
scp -P 2222 gzp@127.0.0.1:gzp@server2:~/Desktop/video.mp4 ~/Downloads
81+
video.mp4 100% 10MB 58.8MB/s 00:00
82+
```
8383
84-
> To do
84+
Note the use of `:` after `gzp@jumpserver` plus the `key` and `username` of the server you need to transfer, and finally write the destination / source path.
85+
Folder transfer is currently not supported. Please compress the file and upload / download it.

0 commit comments

Comments
 (0)