Closed Thread
Results 1 to 5 of 5

Thread: SCP put files

  1. #1
    Prog is offline Learning Programmer
    Join Date
    Jan 2007
    Posts
    98
    Rep Power
    0

    SCP put files

    How can I use SCP to put files on a remote server? I can't figure out any way to pass a password using SCP and it would also seem like a security risk to include my password in a script. Any ideas?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Wanch Guest
    I've read that you can use an SSH key to authenticate. Basically, make the key have no passphrase and when you connect via SSH it will login.

  4. #3
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0
    What command are you issuing to SCP put files?

  5. #4
    ToRk is offline Newbie
    Join Date
    Feb 2009
    Posts
    9
    Rep Power
    0
    Hello

    let's say that you have machine1 which include files and machine2 is your remote server
    use this command to copying file to machine2
    scp file user@ip:/path

    where
    file = filename
    user= user on machine2
    ip= machine2 ip or it can be machine2's hostname
    path= where will file be copied @machine2 ex: scp file user@ip:/home

  6. #5
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Nicely put ToRk!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. md5 and files
    By baldgrapeape in forum General Programming
    Replies: 4
    Last Post: 10-21-2010, 03:14 PM
  2. Differences between text files and binary files.
    By LoneWolf in forum C and C++
    Replies: 3
    Last Post: 02-24-2009, 04:36 PM
  3. Help with files in C....
    By appunu in forum C and C++
    Replies: 1
    Last Post: 09-20-2008, 05:15 PM
  4. jad files
    By imlou in forum Java Help
    Replies: 2
    Last Post: 06-27-2008, 06:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts