How to copy a file to a remote server using the command line?
Posted
by
cool_cs
on Super User
See other posts from Super User
or by cool_cs
Published on 2012-06-03T19:35:11Z
Indexed on
2012/06/03
22:42 UTC
Read the original article
Hit count: 176
I am trying to copy a file from my desktop to my remote server using the sudo command. I am doing this from the remote machine since I know the password for this machine and I do not have a password for my local machine.
sudo scp donj@localhost:/Desktop/my.cnf user@remotemachine:/app/MySQL/my.cnf
This does not work however. I want to overwrite the my.cnf file in the MySQL directory. I tried the su command but I do not have the password to become a super user.
© Super User or respective owner