Showing posts with label scp. Show all posts
Showing posts with label scp. Show all posts

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.

Sunday, September 1, 2013

maven site-deploy - [ERROR] Unsupported protocol: 'scp'

During executing
mvn site-deploy
I met strange error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.4:deploy (default-deploy) on project 
cubiculus-interface: Unsupported protocol: 'scp': Cannot find wagon which supports the requested protocol: scp: java.util.NoSuchElementException
I didn't found anything about this problem on net. So hopefully it will by useful for someone. My problem was in maven-site-plugin which was in version 2.4. This works fine with maven 2.* but not with maven 3.*. Solution is to remove plugin explicit versioning or use version 3.2 like this:

 maven-site-plugin
 3.2