You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 2.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. Scp is a file transfer protocol which is just like ftp only it offers a
  2. more secure service. There are two ways of using scp, WinSCP which is a
  3. graphical user interface for Windows or the command line version. WinSCP
  4. is the easiest to explain so we\'ll do that one first.
  5. ## Getting WinSCP
  6. To download WinSCP, just click
  7. [here!](
  8. ## Using WinSCP
  9. When you first run WinSCP, this is the screen you will be faced with
  10. something like this:
  11. [Image:winscp.jpg](/Image:winscp.jpg "wikilink")
  12. Fill in the host name as:
  13. ``
  14. Then all you have to fill in is your username and password. The first
  15. time you do this it will ask you if you want to add the host to your
  16. cache - you just chose either yes or no. Selecting cancel will abort the
  17. connection.
  18. ## Transferring Files
  19. Once you have logged in you will see a list of files on your computer on
  20. the left and a list of files on the server you have connected to on the
  21. right. To move files across, just click and drag the file from its
  22. source to where you want to move it to just like windows explorer. Then
  23. all you have to do is click \"copy\".
  24. ## Command Line scp
  25. If you are using command line scp, there is different syntax if you want
  26. to move a file from your computer to another computer and if you want to
  27. get a file from another computer and put it on your own computer.
  28. ### From Your Computer to Another Computer
  29. When you want to move a file from your current computer to another
  30. computer you need to follow the following syntax: scp fileOnComputer1
  31. username@computer2:
  32. For example:
  33. `scp exampleFile`
  34. When it tries to authenticate you will be asked if you wish to continue,
  35. just say yes. You will then be asked for your password on computer2. In
  36. this case you would be asked for the password for your login to
  37. redbrick. The file will then be transfered from your computer to the
  38. redbrick server. I have \~/ after \":\" which means that the file will
  39. go into my home directory. You could give a destination for where you
  40. want the file to go.
  41. ### From Another Computer to Your Own
  42. If you want to get a file from computer 2 and put it on your own
  43. computer the syntax is slightly different. You will have to use this
  44. syntax:
  45. `scp username@machine2:filename destination`
  46. For example:
  47. `scp .`
  48. Again when it gets to the authentification stage you will be asked if
  49. you wish to continue. Just type yes. You will then be asked for the
  50. password to enigma. The full stop \".\" just means the file will copied
  51. into your current directory. You could substitute with another
  52. destination if you wanted.
  53. Well that\'s it. All ya need to know about scp. If you\'ve any questions
  54. don\'t hesitate in asking any member of the
  55. [Helpdesk](/Helpdesk "wikilink") team. :-)
  56. ## Links
  57. []( - the WinSCP website.
  58. [Category:Helpdesk](/Category:Helpdesk "wikilink")