Default
SCP
C. BinKadal --- Sendirian, Berhad


List of Contents


scp from Windows

  • E.g., user: cbkadal
    • Remember: you are not cbkadal!
(((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*





scp to Windows

  • E.g., user: cbkadal
    • Remember: you are not cbkadal!

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






© 2021-2024 --- C. BinKadal --- About --- Revision: Mon 18 Nov 2024 17:00.