- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: scp to remote host
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
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
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
тАО11-09-2006 05:04 PM
тАО11-09-2006 05:04 PM
hostA can ssh to hostB via dedicated port 1022 , ( ssh -p 1022 hostB -l root ) , it works , only 1022 port is released.
now I want to cp the file from hostA to hostB ( the command is scp file -p 1022 hostB:/tmp -l root , but fail , can advise what is wrong ? thx
the error is
cp: missing destination file
Try `cp --help' for more information.
cp: cannot stat `1022': No such file or directory
root: Not a directory
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 05:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 05:29 PM
тАО11-09-2006 05:29 PM
Re: scp to remote host
I tried two methods , but also not work , do I need to release or set sth at hostA side , please advise ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 06:50 PM
тАО11-09-2006 06:50 PM
Re: scp to remote host
your syntax is not correct, use
scp -P 1022 file root@hostB:/tmp/file
as Harmanjit stated. Note that you have to use a
capital letter 'P', not lower case '-p' for the port specification!
Using a lower case '-p' leads exactly to your error message.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 07:24 PM
тАО11-09-2006 07:24 PM
Re: scp to remote host
Use this;
scp -p 22
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 11:23 PM
тАО11-09-2006 11:23 PM
Re: scp to remote host
Prabu is wrong:
Uppercase letter -P' is right!
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2006 07:44 AM
тАО11-29-2006 07:44 AM
Re: scp to remote host
From master host:
#> scp -P 22 user@remotehost:/tmp/file masterhost:/tmp/newfilename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 02:25 AM
тАО11-30-2006 02:25 AM
Re: scp to remote host
scp -P 22 user@remotehost:/tmp/file /tmp/newfilename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2006 02:34 AM
тАО11-30-2006 02:34 AM