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?
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.
What command are you issuing to SCP put files?
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
Nicely put ToRk!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks