-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from TNK-Studio/dev
[ADD] support download file from server
- Loading branch information
Showing
5 changed files
with
277 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,18 +67,19 @@ Use the arrow keys to navigate: ↓ ↑ → ← | |
You can use it after logging in with your password again. | ||
### Copy files to server via jumpserver | ||
### Copy files to/from server via jumpserver | ||
If you want to copy files to the server via a springboard, you can use the `scp` command in the following format: | ||
If you want to copy files to / from the server via jumpserver, you can use the `scp` command in the following format: | ||
```shell | ||
$ scp -P 2222 ~/Desktop/README.md gzp@jumpserver:gzp@server2:~/Desktop/README1.md | ||
README.md 100% 9279 73.9KB/s 00:00 | ||
``` | ||
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. | ||
Folder transfer is currently not supported. Please compress the file and upload it. | ||
### Copy files from server via jumpserver | ||
```shell | ||
scp -P 2222 [email protected]:gzp@server2:~/Desktop/video.mp4 ~/Downloads | ||
video.mp4 100% 10MB 58.8MB/s 00:00 | ||
``` | ||
> To do | ||
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. | ||
Folder transfer is currently not supported. Please compress the file and upload / download it. |
Oops, something went wrong.