Wednesday, February 12, 2014

Upload file with SCP

linux command scp is tool for uploading files over ssh. For simple uploading file from local file to remote host could be used this:

scp ~/Downloads/apache-tomcat-7.0.50.tar.gz karel@123.17.131.12:/home/karel/

Previous command will upload apache tomcat install file from local Download directory to remote home of user karel. User will be asked for karel's password.

Than login to remote server as user karel and finally extract apache server in a following way:

tar -zxvf apache-tomcat-7.0.50.tar.gz

And it's done.

No comments:

Post a Comment