- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: correct scp syntax
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 09:54 AM
01-24-2006 09:54 AM
correct scp syntax
What am I doing wrong here.
snort>scp user@xxx.xx.xx.x:test xxx.xx.xx.xx:/home/user.
I know if I am on snort now and I want to scp something to another host, I do the following..
snort> scp test 172.24.10.0:/home/user.
What about if I want to scp from another host as a different user?
Thanks and points will be assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 09:58 AM
01-24-2006 09:58 AM
Re: correct scp syntax
I'm on snort. The server, not the drug.
I am logged in as user schmo.
I want to log into or scp (the syntax is the same) server bagel as user user2
snort>scp /usr/local/files/* user2@bagel:/targetdir
There is no way I know around a password prompt here but this command will copy files from snort to bagel and log in as user user2. It is up to you as the administrator to make sure user schmo on server snort has rights to write files to the target directory on server bagel.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 09:59 AM
01-24-2006 09:59 AM
Re: correct scp syntax
I'm on snort. The server, not the drug.
I am logged in as user schmo.
I want to log into or scp (the syntax is the same) server bagel as user user2
snort>scp /usr/local/files/* user2@bagel:/targetdir
There is no way I know around a password prompt here but this command will copy files from snort to bagel and log in as user user2. It is up to you as the administrator to make sure user schmo on server snort has rights to write files to the target directory on server bagel.
The hostnames bagel can be replaced with a numeric ip address. You don't need to specify the ip address of the local system.
I've never tried to use scp to go from two remote servers. Sounds like an interesting experiment though.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 10:34 AM
01-24-2006 10:34 AM
Re: correct scp syntax
localfile from server1 to server2
server1> scp /path/to/localfile user@server2:/path/to/destination
remotefile from server2 to server1
server1> scp user@server2:/path/to/remotefile /path/to/localdir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 07:22 PM
01-24-2006 07:22 PM
Re: correct scp syntax
Copying remote file to local machine:
scp remote-user@
scp root@172.19.0.1:/tmp/* /tmp/test/
Copying local file to remote machine:
scp /tmp/test/* root@172.19.0.1
No need to use user with hostname or ip-address to localmachine since it is known.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 06:59 AM
01-25-2006 06:59 AM
Re: correct scp syntax
Try this
#scp file_name user_name@host.domain.com:/export/home(path)
cheers
indrajit