-
Notifications
You must be signed in to change notification settings - Fork 0
/
019.pmd
73 lines (45 loc) · 1.08 KB
/
019.pmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: SCP
description:
How to SCP
tagline: SCP
---
[ℼ](#idxXXX)<br id="idx00">
## List of Contents
* [scp from Windows](#idx01)
* [scp to Windows](#idx02)
[ℼ](#)<br id="idx01">
## scp from Windows
* E.g., user: cbkadal
* Remember: <span style="color:red; font-weight:bold; font-size:larger;">you are not cbkadal!</span>
```
(((type nul 2> nul > file1.txt)>file2.txt)>file3.txt)>file4.txt;cmd /r dir/w
scp -P 6022 .\file?.txt cbkadal@localhost:/tmp/
ssh -p 6022 cbkadal@localhost
ls -F /tmp/file*
```
<br>
<img src="{{ site.baseurl }}/assets/images/dospA-21.jpg" style="width:960px;">
<br><br>
[ℼ](#)<br id="idx02">
## scp to Windows
* E.g., user: cbkadal
* Remember: <span style="color:red; font-weight:bold; font-size:larger;">you are not cbkadal!</span>
### GUEST
```
mkdir -pv tmp
cd tmp
mv -v /tmp/file* .
ls -F
exit
```
### WINDOWS
```
del .\file*
scp -P 6022 "cbkadal@localhost:~/tmp/file?.txt" .
cmd /r dir /w
```
<br>
<img src="{{ site.baseurl }}/assets/images/dospA-22.jpg" style="width:960px;">
<br><br>
[ℼ](#)<br id="idxXXX">