Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

SCP put files

networking

  • Please log in to reply
4 replies to this topic

#1 Prog

Prog

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 95 posts

Posted 14 November 2008 - 09:36 AM

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?
  • 0

#2 Guest_Wanch_*

Guest_Wanch_*
  • Guest

Posted 17 November 2008 - 06:33 AM

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.
  • 0

#3 Hektor

Hektor

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 122 posts

Posted 18 November 2008 - 06:31 AM

What command are you issuing to SCP put files?
  • 0

#4 ToRk

ToRk

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 11 February 2009 - 10:59 PM

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
  • 0

#5 Tor

Tor

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 448 posts

Posted 13 February 2009 - 10:49 AM

Nicely put ToRk!
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download