from small one page howto to huge articles all in one place
 

search text in:




Other .linuxhowtos.org sites: toolsntoys.linuxhowtos.org
gentoo.linuxhowtos.org

Poll
Which screen resolution do you use?










poll results



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

4622

userrating:

no votes yet


May 25th. 2007:
Words

486

Views

17585

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

11108

userrating:

no votes yet


April, 26th. 2006:

Druckversion . pdf icon
You are here: System

Using the Secure Copy command (scp) from the command prompt

There are occasions when you may want to push or pull a file from one machine to another from the command line.
For example, recently I needed to restore a configuration file from a backup machine to a production machine after a disk failure and subsequent software reinstallation.

In the following scenarios, replace the machine1 and machine2 listings with the IP addresses or domain names of your machines.

Scenario 1

The file was located on machine1 and needed to be moved (pushed) to machine2.
The command below identifies the file on machine1
and securely copies it to machine2:
<root@machine1 /root># scp /etc/aspseek/sites.conf machine2:

You will be prompted for the root password of machine2.
When successfully authenticated, the file will be scp'ed into the /root directory of machine2, from which it was easily moved to the proper directory.

Scenario 2:

The file "removecore.sh" was located on machine2 and needed
to be moved(pulled) onto machine1:
<root@machine1 /root># scp machine2:/root/removecore.sh /root

Once again, you will be asked to authenticate with the root password. If successful, the removecore.sh script will be scp'ed to the /root directory of machine1.

rate this article:
current rating: average rating: 2.7 (7 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back
Please read "Why adblockers are bad". Ärger mit Freenet.de



other Ads
Stellenangebote
Stellenangebote
für Fach- und
Führungskräfte
www.nachoben.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
FeedCollector
Combine various newsfeeds to one customized webpage
www.feedcollector.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004 S&P Softwaredesign
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 14.9 ms
system status display