Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] support download file from server #19

Merged
merged 1 commit into from
Dec 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading