17 lines
438 B
Markdown
17 lines
438 B
Markdown
---
|
|
title: "i need a file off my server but i don't want to set up ftp"
|
|
date: 2020-01-11T05:11:00+01:00
|
|
draft: false
|
|
snippet_types: ["scp"]
|
|
---
|
|
|
|
```shell
|
|
$ scp -i ~/.ssh/privkey travis@199.199.19.199:/home/travis/example.txt ./
|
|
```
|
|
|
|
Yeah sometimes you just need to move files around. Any server you have ssh access to you can use
|
|
that same key to send files over ssh.
|
|
|
|
source:
|
|
|
|
[man page](http://man7.org/linux/man-pages/man1/scp.1.html)
|