Thread: scp general question!

  1. #1
    Registered User
    Join Date
    Sep 2013
    Posts
    5

    scp general question!

    I am trying to copy a bunch of files that are saved in one folder called project2 from my computer to a virtual machine or "remote host". I was wondering what would be the syntax for that? so far I've tried,

    scp -r project2 /documents/folderName/computerScience username@IPaddressofserver:/nameOfDirectoryIWantItPutInto

    Thank you!

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    So you tried it, did it work? If not, it would help if you explained what the problem is, error messages, etc. Better yet, copy-paste the actual command and any output you got, from your terminal screen. I suggest putting it in [code][/code] tags to preserve any spaces, etc that would otherwise be removed/compressed.

    Also, you say you're trying to copy files saved in one folder, yet you appear to have two folders listed as "source" folders (project2 and /documents/folderName/computerScience). Did you mean to have a space between the two? If so, why?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. general question
    By ingeniousreader in forum C Programming
    Replies: 4
    Last Post: 05-21-2012, 09:59 AM
  2. Just a general question;
    By fthmdg in forum C++ Programming
    Replies: 7
    Last Post: 04-09-2010, 04:14 PM
  3. General question
    By saudi-vip in forum C Programming
    Replies: 11
    Last Post: 10-10-2008, 04:46 PM
  4. General Question
    By obaid in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 08-22-2007, 05:39 AM
  5. A general question
    By vampire in forum C Programming
    Replies: 7
    Last Post: 11-06-2005, 09:53 PM